In Android, I can't got the value after I add Facebook SDK in to my project.(the network in china)
_bootstrapAsync = async () => {
const userId = await AsyncStorage.getItem('login');
console.log(userId);
// This will switch to the App screen or Auth screen and this loading
// screen will be unmounted and thrown away.
this.props.navigation.navigate(userId ? 'App' : 'Auth');
};
get the value
I'd need more info to know what's the problem. Are you sure you're saving the data correctly?
Yeah, I had saved the data, it is normal in IOS. I tried use sync storage method likes realm, It is ok, but realm is more complicated.
I think it is Facebook android SDK initializationās conflict
@mingxin-yang is there any error you get while retrieving the data?
I use the DedicatedExecutor method fix the problem.
Most helpful comment
I use the DedicatedExecutor method fix the problem.