Realm React-native: Access Same Realm From Js(react Native Code) And Android(java)
Solution 1:
If I understood correctly, I just want to use Realm both on native and react native code correct?
If so, it should be as simple as initialising the Realms on both codes (with the same path), and write/query normally. I did this and it worked.
Solution 2:
I have the same requirement and tried accessing the same file from android and react-native which breaks my application. I changed to pathfile on one side to proof its pathfile related.
It would be great, if someone from the realm team can confirm this is/should work or not and what I should do to fix this issue. I assume more users will use services in android and need to access the data in react-native.
versions js: "realm": "^2.21.0", "react-native": "0.57.7",
version android: 'com.android.tools.build:gradle:3.2.1' minSdkVersion = 26
Post a Comment for "Realm React-native: Access Same Realm From Js(react Native Code) And Android(java)"