question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't get value with getItem

See original GitHub issue

Current 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
mingxin-yangcommented, Aug 14, 2019

I use the DedicatedExecutor method fix the problem.

0reactions
krizzucommented, Aug 8, 2019

@mingxin-yang is there any error you get while retrieving the data?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found