question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:27
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

12reactions
melsamcommented, Jun 8, 2017

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

7reactions
fealebenpaecommented, Jun 13, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native App no longer builds … | Apple Developer Forums
My react native app previously built and ran on a simulator in xcode 11. However sine upgrading to xcode 12.5 i get the...
Read more >
RCTBridge is Always Nil - ios - Stack Overflow
You do not have to subclass RCTEventEmitter . Just add the @objc attribute. So the variable should be @objc var bridge: RCTBridge!
Read more >
React Native bridge for iOS - Introduction
This article provides information on how to set up the React Native bridge for our SDK. Once you set up the bridge, you...
Read more >
How to Achieve React Native and iOS Bridging? - TO THE NEW
In this blog, we bring to you a blog about how to achieve react native and iOS bridging?
Read more >
React Native Bridge for iOS and Android | by Abhishek Nalwaya
One of the biggest reasons for the popularity of React Native is that we can create a bridge between the Native language and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found