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 crashed after adding realm #2238

Closed
Wangor opened this issue Jan 25, 2019 · 7 comments
Closed

React native crashed after adding realm #2238

Wangor opened this issue Jan 25, 2019 · 7 comments

Comments

@Wangor
Copy link

Wangor commented Jan 25, 2019

I just tried to get started with react-native and realm. Followed the tutorial here: Tutorial from realm I did nothing, just - react-native init demo - cd demo - npm install realm --save - react-native link

fixed the "....." stuff to "......"

and tried with react-native run-android to start the app. It starts and closes immediately.

Why? Any ideas?

Thanks

ps: I had to install nvm for Windows and changed with nvm use 8.15.0 to an earlier version of node than 11.6.0.. as it seems that realm is not supporting it yet and I am testing on a real device (Xiaomi Redmi Note 5)

@Wangor
Copy link
Author

Wangor commented Jan 31, 2019

same for adding with yarn or using react native 0.57.1

this is the log...

--------- beginning of main
01-31 07:33:53.919 8187 8187 D ReactNative: ReactInstanceManager.ctor()
01-31 07:33:53.967 8187 8187 D ReactNative: ReactInstanceManager.createReactContextInBackground()
01-31 07:33:53.967 8187 8187 D ReactNative: ReactInstanceManager.recreateReactContextInBackgroundInner()
--------- beginning of crash

@nicomero
Copy link

nicomero commented Feb 3, 2019

Im having the exact same problem. Im working on a mac and testing on a Huawei.

@hkadyanji
Copy link

hkadyanji commented Feb 8, 2019

@Wangor It looks like v0.58.0 of react-native isn't compatible/ breaks something in realm as of now;
a temporary solution will be to initialize your RN project using v0.57.8

Steps:
react-native init --version="react-native@0.57.8" projectName
cd projectName
npm install realm --save
react-native link

And it should work

@Wangor
Copy link
Author

Wangor commented Feb 11, 2019

@hkadyanji
Seems to work! Thanks a lot for your help as I was trying as well with 0.57.1...
Is there s list with working and not working versions?
(somehow like a matrix? RN Version, Realm Version)

@hsnMoghadasi
Copy link

worked!
#2249

@hzlu
Copy link

hzlu commented May 14, 2019

@hsnMoghadasi thank you!

@realm-probot
Copy link

realm-probot bot commented Aug 16, 2019

Hey - looks like you forgot to add a T:* label - could you please add one?

@kneth kneth closed this as completed Aug 16, 2019
@kneth kneth added the T-Help label Aug 16, 2019
@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

6 participants