Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

33 lines (22 sloc) 768 Bytes

Async Storage

Included in reactotron-react-native is a plugin called asyncStorage which allows you to track AsyncStorage on React Native.

Usage

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.

Advanced Usage

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']
})
You can’t perform that action at this time.