Error: Realm at path ‘/data/user/0/com.drug/files/drugApp.realm’ already opened on current thread with different schema. To solve this error you need to close Realm instance like below code example:- export const insertNewContact = newcontact => new Promise((resolve,reject) => { Realm.open(databaseOptions).then(realm=>{ realm.write(() =>
Error: TypeError: Cannot read property map of undefined at resolveDependencies (C:\xampp\htdocs\reactnative\reactnativerealm\drug\node_modules\metro\src\DeltaBundler\traverseDependencies.js
error: TypeError: Cannot read property ‘map’ of undefined at resolveDependencies (C:\xampp\htdocs\reactnative\reactnativerealm\drug\node_modules\metro\src\DeltaBundler\traverseDependencies.js To solve this error in react native you need to clean your temp folder in windows OS. Goto C:\Users\AppData\Local\Temp folder. Delete all data.
How to get data in DESC order Realm React Native
How to get data in DESC order Realm React Native To get data in descending order in Realm React Native or react ionic you need to use the following sorted method like below:- var contacts = realm.objects('contacts').sorted('id', true); console.log(contacts); if