can't get value with getItem
See original GitHub issueCurrent behavior
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');
};
Expected behavior
get the value
Repro steps
Environment
- Async Storage version:1.6.1
- React-Native version: 0.59.10
- Platform tested: Android
- Logs/Error that are relevant:
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
GetItem - Amazon DynamoDB - AWS Documentation
The GetItem operation returns a set of attributes for the item with the given primary key. If there is no matching item, GetItem...
Read more >Storage.getItem() - Web APIs - MDN Web Docs
The getItem() method of the Storage interface, when passed a key name, will return that key's value, or null if the key does...
Read more >Cannot get value from sessionStorage.getItem in cordova
I use cordova for my hybrid mobile app, so i use sessionStorage to store some items from remote like this : document.
Read more >Storage getItem() Method - W3Schools
The getItem() method returns value of the specified Storage Object item. The getItem() method belongs to the Storage Object, which can be either...
Read more >"Get item" from SharePoint list doesn't fetch blank value
When I use the "get item" from sharepoint list, the blank fields are missing out from the output body. How to include blank...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I use the DedicatedExecutor method fix the problem.
@mingxin-yang is there any error you get while retrieving the data?