realm-js: Can't get Realm to work on iOS for React Native 0.58.0
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
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
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 52
- Comments: 25 (3 by maintainers)
We are working on fixing it here: https://github.com/realm/realm-js/pull/2242 No ETA yet.
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
Is there a workaround in the meantime except for downgrading react-native to 0.57?
@vinpro24 you need to wait till #2242 is completed and released.
same issue on iOS (React Native 0.58.5 & Realm 2.21.0).
It appears react-native 0.58 broke something. Until this is fixed it’s recommended to downgrade to 0.57.1
@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.
Same here, realm is unusable with RN 0.58+. Any news / ETA realm team ?