Registry / testing / rn-async-storage-flipper

rn-async-storage-flipper

JSON →
library0.0.10jsnpmunverified

React Native Async Storage debugger for Flipper. Version 0.0.10 — stable but low activity. Integrates with react-native-flipper to display AsyncStorage contents in the Flipper desktop debugger. Requires manual initialization with the AsyncStorage instance. Ships TypeScript types. Alternatives: react-native-async-storage-debugger, async-storage-debugger.

npm install rn-async-storage-flipper
INSTALL
IMPORT
SIG · RN-ASYNC-STORAGE-F
R
rn-async-storage-flipper
testingjavascriptv0.0.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import RNAsyncStorageFlipper from 'rn-async-storage-flipper'
import { RNAsyncStorageFlipper } from 'rn-async-storage-flipper'
Default export — named export will be undefined.
default
const RNAsyncStorageFlipper = require('rn-async-storage-flipper').default
const RNAsyncStorageFlipper = require('rn-async-storage-flipper')
CommonJS requires .default because package uses ESM exports.
AsyncStorage
import AsyncStorage from '@react-native-async-storage/async-storage'
import AsyncStorage from 'react-native'
Correct AsyncStorage package is @react-native-async-storage/async-storage, not deprecated react-native's built-in.

Initialize rn-async-storage-flipper by importing the default function and passing the AsyncStorage instance.

import AsyncStorage from '@react-native-async-storage/async-storage'; import RNAsyncStorageFlipper from 'rn-async-storage-flipper'; // Initialize Flipper debugger with AsyncStorage instance RNAsyncStorageFlipper(AsyncStorage); // Example usage of AsyncStorage AsyncStorage.setItem('key', 'value'); AsyncStorage.getItem('key').then(console.log); // Note: For iOS, run 'cd ios && pod install' after installing dependencies.
Debug
Known issues
gotchaMissing pod install on iOS will cause runtime crash.
fix
Run 'cd ios && pod install' after adding react-native-flipper and rn-async-storage-flipper.
affects: all
gotchaIf using CommonJS (require), you must use .default to access the function.
fix
Use const RNAsyncStorageFlipper = require('rn-async-storage-flipper').default;
affects: >=0.0.1
deprecatedPackage @react-native-community/async-storage has been renamed to @react-native-async-storage/async-storage.
fix
Use import AsyncStorage from '@react-native-async-storage/async-storage';
affects: all
gotchaThe storage instance must have getAllKeys and multiGet methods; custom wrappers may break.
fix
Ensure the storage object passed to RNAsyncStorageFlipper exposes these async functions.
affects: all
Errors
Common errors & fixes
TypeError: RNAsyncStorageFlipper is not a function
Using named import instead of default import.
fix
Change to: import RNAsyncStorageFlipper from 'rn-async-storage-flipper';
Invariant Violation: Native module cannot be null
Missing pod install or react-native-flipper not linked.
fix
Run 'cd ios && pod install' and ensure react-native-flipper is installed.
Cannot find module '@react-native-community/async-storage'
The package was renamed to @react-native-async-storage/async-storage.
fix
Install the new package: yarn add @react-native-async-storage/async-storage and update imports.
Upgrade
Version history
0.0.10latest on npm
Audit
Dependencies
react-native-flipperrequiredRequired to communicate with Flipper desktop debugger
@react-native-async-storage/async-storagerequiredPeer dep — the storage instance to debug
Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
rn-async-storage-flipper — npm install rn-async-storage-flipper · libregistry