Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[React Native v0.45.0-rc.3] [iOS] Realm has no setter or ivar for its bridge #1049

Closed
mehcode opened this issue Jun 6, 2017 · 18 comments
Closed
Assignees

Comments

@mehcode
Copy link

mehcode commented Jun 6, 2017

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)
@ovr
Copy link
Contributor

ovr commented Jun 8, 2017

@jbreuer95
Copy link

+1

@melsam
Copy link

melsam commented Jun 8, 2017

+1. this is blocking us from updating to RN 0.45.

@yemarnevets
Copy link

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.

@danielreuterwall
Copy link

It works fine in 0.44. Just the latest release that introduced this issue.

@Sophia-Gao
Copy link

+1

@SoundBlaster
Copy link

There is a same issue in RN repo but solutions from this tread can not help me
facebook/react-native#13384

@billpatterson
Copy link

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.

@antonellil
Copy link

What is the solution for this?

@aparedes
Copy link

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.

@zphhhhh
Copy link

zphhhhh commented Jun 13, 2017

Hope can support RN 0.45 soon, THX

@fealebenpae
Copy link
Member

Folks, #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.

@aparedes
Copy link

aparedes commented Jun 14, 2017

@fealebenpae it works fine in debug mode but I get the same error in release mode.

@fealebenpae
Copy link
Member

@aparedes thanks, I'll check it out. What are your Xcode and React Native versions?

@aparedes
Copy link

@fealebenpae Xcode 8.3.3 and ReactNative 0.45.1

@fealebenpae
Copy link
Member

I've reproduced it and fixed it, @aparedes, thanks. Check out the latest commit on #1065

fealebenpae added a commit that referenced this issue Jun 14, 2017
* Support the new React Native C++ bridge

Fixes #1049

* address code review comments

* handle the case when the websocket executor does not exist
@dzunglht-ibl
Copy link

Please do regression test on react-native (release-build mode)
Thanks

@frangeris
Copy link

@fealebenpae Installed and working 😌 , any ETA for tag? in the mean time...

$ npm install realm/realm-js#237e1ba --save

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests