Where is this storing at? #668
Replies: 2 comments 1 reply
|
As far as I know, the local storage tab is just something that comes with Chrome debugger for debugging web apps. It's not meant for React Native apps. You might want to look into using Flipper and a plugin for AsyncStorage. |
|
What you're seeing is expected: React Native AsyncStorage is not the same thing as the browser's On React Native, the package stores data in the app's native persistent storage (inside your app sandbox). On web, the implementation is different again. From your code's point of view, the important part is just that it is persistent key/value storage: await AsyncStorage.setItem('@user', JSON.stringify(user))
const raw = await AsyncStorage.getItem('@user')
const parsed = raw ? JSON.parse(raw) : nullIf you want to inspect what is there, a more reliable approach is: const keys = await AsyncStorage.getAllKeys()
console.log(keys)and then read specific keys with For tooling, Flipper has historically been the better option for native storage inspection than the browser debugger tab. So short version: your data is stored natively, not in the debugger's web |


Uh oh!
There was an error while loading. Please reload this page.
Quick question,
So far it seems to work fine, I'm able to save and get information. But one thing that's confusing me is where exactly my information is being stored. I have React Native Debugger running and I looked at the local storage tab and I don't see my information in there. Is it hidden somewhere else?
All reactions