antoniopresto / react-native-local-mongodb

react-native local mongodb storage.
MIT License
304 stars 66 forks source link

AsyncStorage Support in React Native >= v0.59 #59

Closed chxmbley closed 2 years ago

chxmbley commented 5 years ago

Per React Native's changelog, AsyncStorage is being removed from the core RN package and extracted to @react-native-community/async-storage.

Using this library in version >= 0.59 causes a warning to appear in dev mode, reading:

C:\Users\FlowDev\Desktop\LocalStorage\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:2326 Warning: Async Storage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/async-storage' instead of 'react-native'. See https://github.com/react-native-community/react-native-async-storage

chxmbley commented 5 years ago

Looks like this was already merged into master

antoniopresto commented 5 years ago

I have not been able to run on a real device, so I need to rollback the package for now. However, it is possible to pass the new asyncStorage lib as a parameter.

tex0l commented 4 years ago

Any news on this? @antoniopresto

antoniopresto commented 2 years ago

https://github.com/antoniopresto/react-native-local-mongodb/commit/b5955beba169fe636c042dab1a0f0e74cfecd1de#diff-b8b299a0e1fb5c6b8af2005882604ba564e358b3aa92aae744e1e67756469418L42