sync-storage icon indicating copy to clipboard operation
sync-storage copied to clipboard

NativeModule:AsyncStorage is null

Open jsshizhan opened this issue 5 years ago • 8 comments

jsshizhan avatar May 30 '19 08:05 jsshizhan

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!

peterkmurphy avatar May 31 '19 04:05 peterkmurphy

Same problem :(

littleJmer avatar Jun 18 '19 21:06 littleJmer

react-native link @react-native-community/async-storage :+1:

halyson97 avatar Aug 05 '19 17:08 halyson97

Same problem here . any update ?

duongkhoangiam avatar Mar 04 '20 11:03 duongkhoangiam

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. :)

raphaelpor avatar Mar 04 '20 13:03 raphaelpor

anyone can help ?

duongkhoangiam avatar Mar 07 '20 12:03 duongkhoangiam

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

ghaankcyber88 avatar Jul 11 '20 05:07 ghaankcyber88

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)

Se-Lyan avatar Jun 06 '21 17:06 Se-Lyan