Introduce liblary named async-storage-repl.
AsyncStorage repl provides you to access your ReactNative Application AsyncStorage using your console node REPL.
It makes easy to development your app.
and it has more feture...
Example Persisting date: try { await AsyncStorage.setItem('@MySuperStore:key', 'I like to save it.'); } catch (error) { // Error saving data } Fetching date: try { const value = await AsyncStorage.getItem('@MySuperStore:key'); if (value !== null){ // We have data!! console.log(value); } } catch (error) { // Error retrieving data }
example > RNAsyncStorage.getItem(1) RuntimeTypeError: key must be a string Expected: string Actual Value: 1 Actual Type: number at RNAsyncStorage.getItem (/Users/noguchimasato/src/async-storage- cli/src/node/RNAsyncStorage.js:25:24) at repl:1:16 at sigintHandlersWrap (vm.js:92:15) at ContextifyScript.Script.runInThisContext (vm.js:42:12) at REPLServer.defaultEval (repl.js:239:29) at bound (domain.js:301:14) at REPLServer.runBound [as eval] (domain.js:314:12) at REPLServer.onLine (repl.js:433:10) at emitOne (events.js:120:20) at REPLServer.emit (events.js:210:7)