When trying to use Realm in the soon-to-be-stable v0.45 of React Native the setBridge function fails with the following (which causes the exception in the issue title to show in a red box) on https://github.com/realm/realm-js/blob/master/react-native/ios/RealmReact/RealmReact.mm#L275
[<RCTBridge 0x6100000a5e20> valueForUndefinedKey:]: this class is not key value coding-compliant for the key javaScriptExecutor.
I'm assuming this has to do with the newer C++ bridge.
Realm: 1.3.1
React Native: v0.45.0-rc.3
Platform: iOS (Android seems to work great)
0.45.0 Released, https://github.com/facebook/react-native/releases/tag/v0.45.0
ping @alazier, @appden, @tgoyne
+1
+1. this is blocking us from updating to RN 0.45.
Is there a recent version of ReactNative that still works with Realm?
I am getting set up with Realm for the first time and I am happy to roll back RN temporarily to get experience with Realm.
It works fine in 0.44. Just the latest release that introduced this issue.
+1
There is a same issue in RN repo but solutions from this tread can not help me
https://github.com/facebook/react-native/issues/13384
Also getting this error, also tried solutions in link @SoundBlaster mentioned, did not help me either. Project was working fine until I updated to RN 0.45 today.
What is the solution for this?
Right now, you should just use RN 0.44.3 or under. And wait for the next release of realm fixes it or a new update from RN.
Hope can support RN 0.45 soon, THX
Folks, https://github.com/realm/realm-js/pull/1065 fixes this issue. We'll try to make a new release as soon as possible, but in the mean time you can just apply the changes to RealmReact.mm in the PR to the same file in node_modules/realm/react-native/ios/RealmReact in your apps.
@fealebenpae it works fine in debug mode but I get the same error in release mode.
@aparedes thanks, I'll check it out. What are your Xcode and React Native versions?
@fealebenpae Xcode 8.3.3 and ReactNative 0.45.1
I've reproduced it and fixed it, @aparedes, thanks. Check out the latest commit on #1065
Please do regression test on react-native (release-build mode)
Thanks
@fealebenpae Installed and working :relieved: , any ETA for tag? in the mean time...
$ npm install realm/realm-js#237e1ba --save
Most helpful comment
+1. this is blocking us from updating to RN 0.45.