I am storing few user preferences in React Native using AsyncStorage
. Now, I need to get those preference from a background service. I can't access AsyncStorage
from the Java layer. Is there a way to do it?
In iOS, We can import RCTAsyncLocalStorage.h
and call _getValueForKey
. But, I can't find a way to do it in Android.