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

Can't get Realm to work on iOS for React Native 0.58.0 #2239

Closed
ferrannp opened this issue Jan 25, 2019 · 25 comments
Closed

Can't get Realm to work on iOS for React Native 0.58.0 #2239

ferrannp opened this issue Jan 25, 2019 · 25 comments
Assignees

Comments

@ferrannp
Copy link

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:

Steps to Reproduce

react-native init YourProject
yarn add realm
react-native link realm

simulator screen shot - iphone x - 2019-01-25 at 16 42 15

Code Sample

https://github.com/ferrannp/realm-react-native-test

Version of Realm and Tooling

  • Realm JS SDK Version: 2.22.0
  • React Native: 0.58.0
@cesargdm
Copy link

cesargdm commented Jan 26, 2019

x2 (iOS, device)

@Wangor
Copy link

Wangor commented Jan 26, 2019

x3 (Android)

@nvuhung
Copy link

nvuhung commented Jan 27, 2019

Same issue on iOS :(

@abanobboles
Copy link

Same issue on iOS, how can I use realm with an old react native version?

@ghost
Copy link

ghost commented Jan 28, 2019

iOS

@d-sandman
Copy link

Same story with React Native 0.58.1, 0.58.2 and 0.58.3

@jtweaver
Copy link

Same. Is realm ready for react-native 0.58.* or do we need to downgrade?

@sorinns
Copy link

sorinns commented Jan 29, 2019

+1 (iOS)
react-native 0.58.3, realm 2.22.0
unfortunately I had to rollback to react-native 0.57.1

@bmunkholm
Copy link
Contributor

It appears react-native 0.58 broke something. Until this is fixed it's recommended to downgrade to 0.57.1

@plouh
Copy link

plouh commented Jan 29, 2019

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.

@chmiiller
Copy link

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

@mahadazad
Copy link

I am also getting the same error with realm

@bmichotte
Copy link

Same here, realm is unusable with RN 0.58+.
Any news / ETA realm team ?

@cmelchior
Copy link
Contributor

We are working on fixing it here: #2242
No ETA yet.

@vinpro24
Copy link

vinpro24 commented Feb 6, 2019

@cmelchior How to fix it? Im also getting the same error. react-native 0.58.3, realm 2.23.0

@ferrannp
Copy link
Author

ferrannp commented Feb 6, 2019

@vinpro24 you need to wait till #2242 is completed and released.

@ferrannp ferrannp closed this as completed Feb 6, 2019
@ferrannp ferrannp reopened this Feb 6, 2019
@pieter888
Copy link

Is there a workaround in the meantime except for downgrading react-native to 0.57?

@reyn-nova
Copy link

reyn-nova commented Feb 18, 2019

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

@s1ro6
Copy link

s1ro6 commented Feb 22, 2019

same issue on iOS (React Native 0.58.5 & Realm 2.21.0).

@vdlindenmark
Copy link

#2242 is merged, so it should be fixed?

@bmunkholm
Copy link
Contributor

@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.

@pieter888
Copy link

Can confirm this issue is resolved for me in react 0.58.5.

I did encounter issue #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.

@sorinns
Copy link

sorinns commented Mar 1, 2019

confirmed for me too
react-native 0.58.6 + realm 2.24.0 works

@ferrannp
Copy link
Author

ferrannp commented Mar 1, 2019

Thanks for fixing this @tgoyne !

@ferrannp ferrannp closed this as completed Mar 1, 2019
@Noly1990
Copy link

Noly1990 commented Mar 5, 2019

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.

@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