Skip to main content

Devtools Folder

Reactotron

Ignite comes with Reactotron support for debugging your app. By default, Reactotron is configured to work with web and mobile apps and is configured with a few plugins and commands we think are useful.

ReactotronConfig.ts

There are a few custom commands included with this configuration. You can use reactotron.onCustomCommand to add your own own custom debugging tools to Reactotron. Here is an example:

reactotron.onCustomCommand({
title: "Reset Navigation State",
description: "Resets the navigation state",
command: "resetNavigation",
handler: () => {
Reactotron.log("resetting navigation state")
resetRoot({ index: 0, routes: [] })
},
})

For more info check out the Reactotron Documentation