antoniopresto / react-native-local-mongodb

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

Problem about Persistence storage #64

Closed jack-chui closed 5 years ago

jack-chui commented 5 years ago

Hi, I create datastore by the following code.

const userDB = new Datastore({fileName: 'User', inMemoryOnly: false});
console.log(userDB.persistence);

But the log result shows that inMemortOnly = true and fileName = null. Therefore, I cannot read data after I restart my application.