I need to persist data in local storage using AsyncStorage from JS code.
I would like to know if there is a way to access data stored from AsyncStorage from native code (Objective-C or Java).
Thanks!
If you import RCTAsyncLocalStorage.h
, you can call _getValueForKey
: https://github.com/facebook/react-native/blob/master/React/Modules/RCTAsyncLocalStorage.m#L266
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With