Can't get Realm to work with iOS with the new React Native 0.58.0. I tried to update from 0.57.x and the iOS project was not compiling. I tried a new project and:
react-native init YourProject
yarn add realm
react-native link realm

https://github.com/ferrannp/realm-react-native-test
x2 (iOS, device)
x3 (Android)
Same issue on iOS :(
Same issue on iOS, how can I use realm with an old react native version?
iOS
Same story with React Native 0.58.1, 0.58.2 and 0.58.3
Same. Is realm ready for react-native 0.58.* or do we need to downgrade?
+1 (iOS)
react-native 0.58.3, realm 2.22.0
unfortunately I had to rollback to react-native 0.57.1
It appears react-native 0.58 broke something. Until this is fixed it's recommended to downgrade to 0.57.1
RN 0.58 updated JavaScriptCore and it is now needed as a framework dependency, so it was a major change in that respect and I suspect it has everything to do with realm breaking.
In addition android should now have support for 64 bit binaries so it is another possible cause for android problems.
Same here on react-native 0.58.3 on iOS
The error says: Exception '-[RCTCxxBridge jsContextRef]:unrecognized selector sent to instance Ox7fc2c70144d0 was thrown from JS thread
I am also getting the same error with realm
Same here, realm is unusable with RN 0.58+.
Any news / ETA realm team ?
We are working on fixing it here: https://github.com/realm/realm-js/pull/2242
No ETA yet.
@cmelchior How to fix it? Im also getting the same error. react-native 0.58.3, realm 2.23.0
@vinpro24 you need to wait till #2242 is completed and released.
Is there a workaround in the meantime except for downgrading react-native to 0.57?
react-native 0.59 is nearly here, I think it's good to make sure the fix is runable on 0.59, at least tested on 0.59.0-rc.2 version, check if that breaks something new too
same issue on iOS (React Native 0.58.5 & Realm 2.21.0).
@vdlindenmark and others - it should now work in realm-js 2.24.0 - please try it out and let us know if it works for you.
Can confirm this issue is resolved for me in react 0.58.5.
I did encounter issue https://github.com/realm/realm-js/issues/2259 after installing Realm 2.24.0.
But it works after adding the latest "decompress" and "https-proxy-agent" to my package.json as a workaround.
confirmed for me too
react-native 0.58.6 + realm 2.24.0 works
Thanks for fixing this @tgoyne !
Thank you, I had got the same problem, and now, update the realm from 2.23.0 to 2.24.0, works no bugs with react-native 0.58.5.
Most helpful comment
We are working on fixing it here: https://github.com/realm/realm-js/pull/2242
No ETA yet.