antoniopresto / react-native-local-mongodb

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

Cannot use persistence with the last version #57

Closed lironsher closed 5 years ago

lironsher commented 5 years ago

With version 2.2.7 can't use persistence and the executor never turn to ready.

Nothing is working.

React-native version 0.56.1

antoniopresto commented 5 years ago

Please, can you confirm the version in node_modules?

antoniopresto commented 5 years ago

also, check the async package version that you are using

lironsher commented 5 years ago

The version in node_modules is 2.2.7 async version is 2.6.1

antoniopresto commented 5 years ago

I can't reproduce. looks like a package.lock issue. You can try delete your node_modules and install the 2.2.9 version

lironsher commented 5 years ago

I've upgraded to version 0.59.3 and its start working, but now I get the AsyncStorage warning

antoniopresto commented 5 years ago

I had some problems upgrading to the community version of asyncStorage, I will not be able to upgrade for a while. You can pass a custom storage in the DataStore config. see: https://github.com/antoniopresto/react-native-local-mongodb#using-a-custom-storage