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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…