Included in reactotron-react-native
is a plugin called asyncStorage
which allows you to track AsyncStorage on React Native.
Wherever you setup your Reactotron in your app, you also add the additional plugin on the import
line.
import Reactotron, { asyncStorage } from 'reactotron-react-native'
Next, add it as a plugin to Reactotron.
Reactotron
.configure()
.use(asyncStorage()) // <--- here we go!
.connect()
You're done.
asyncStorage()
also accepts an object with an ignore
key. The value is an array of strings you would like to prevent sending to Reactotron.
asyncStorage({
ignore: ['secret']
})