Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 768 Bytes

plugin-async-storage.md

File metadata and controls

32 lines (22 loc) · 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']
})