Async-Storage debugger for Flipper.
- Install these libraries in your react-native app.
yarn add rn-async-storage-flipper react-native-flipperFor iOS, you'll need to run
cd ios && pod install- Import the
rn-async-storage-flipperlibrary and pass as argument your storage instance.
import RNAsyncStorageFlipper from 'rn-async-storage-flipper';
// ....
import AsyncStorage from '@react-native-community/async-storage';
// We recommend to invoke the function inside a componentDidMount or useEffect
RNAsyncStorageFlipper(AsyncStorage);Note that you storage must have the following async methods:
-
getAllKeys -
multiGet
-
Install the flipper-plugin-async-storage in Flipper app
-
Re-run your app
