sunnylqm / react-native-storage

local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.
MIT License
3.02k stars 268 forks source link

Unhandled JS Exception: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null. #267

Closed hyy6565 closed 2 years ago

hyy6565 commented 2 years ago

environment:RN0.59

follow the .md file ,when biuld the project It occurs.

sunnylqm commented 2 years ago

only rn >= 0.60 has autolink feature. for version < 0.60 you should do manual linking (usually you just need to run npx react-native link, and an extra step npx pod-install for ios ) for all libraries that have native modules

ref: https://react-native-async-storage.github.io/async-storage/docs/install#link