Closed juancruzgs closed 4 years ago
Adds a native method to delete locations stored in Realm database. It's the only RealmObject stored in the database. In the future, if more RealmObjects are added, we can call realm.deleteAll() to delete everything.
RealmObject
realm.deleteAll()
https://pathcheck.atlassian.net/browse/SAF-799
This method should be called from React Native to be tested await NativeModules.SecureStorageManager.removeAllLocations()
await NativeModules.SecureStorageManager.removeAllLocations()
Description:
Adds a native method to delete locations stored in Realm database. It's the only
RealmObject
stored in the database. In the future, if moreRealmObject
s are added, we can callrealm.deleteAll()
to delete everything.Linked issues:
https://pathcheck.atlassian.net/browse/SAF-799
How to test:
This method should be called from React Native to be tested
await NativeModules.SecureStorageManager.removeAllLocations()