Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeModule:AsyncStorage is null #8

Open
jsshizhan opened this issue May 30, 2019 · 8 comments
Open

NativeModule:AsyncStorage is null #8

jsshizhan opened this issue May 30, 2019 · 8 comments

Comments

@jsshizhan
Copy link

No description provided.

@peterkmurphy
Copy link

I got the same problem on expo. The current version of sync-storage relies on '@react-native-community/async-storage', but '@react-native-community/async-storage' is not supported there!

@littleJmer
Copy link

Same problem :(

@halyson97
Copy link

react-native link @react-native-community/async-storage 👍

@duongkhoangiam
Copy link

Same problem here . any update ?

@raphaelpor
Copy link
Owner

Hey guys,
I am looking for someone to have a look on this issue. Today I don't have a quality time to maintain this repository, so any help will be appreciated. :)

@duongkhoangiam
Copy link

anyone can help ?

@ghaankcyber88
Copy link

async componentWillMount(){
const data = await SyncStorage.init();
console.log('AsyncStorage is ready!', data);
}

@Se-Lyan
Copy link

Se-Lyan commented Jun 6, 2021

Hi ! Today i was discover sync storage and I got this error, the solution is replace "import AsyncStorage from "@react-native-community/async-storage" by "import AsyncStorage from "@react-native-async-storage/async-storage" (dont forget to download react-native-async-storage/async-storage and init SyncStorage in componentDidMount)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants