JaneaSystems / nodejs-mobile

Full-fledged Node.js on Android and iOS
https://code.janeasystems.com/nodejs-mobile
Other
2.58k stars 182 forks source link

react native runtime crash ios #240

Open JosipSylo opened 4 years ago

JosipSylo commented 4 years ago

Hi, I have been experiencing runtime crashes on ios when calling nodejs.start('main.js');. The same code runs well on Android. Autolinking doesn't work in my project because of other dependencies so I ran the react-native link command. I get the same errors if I run the react-native link in a clean react native project.

Screen Shot 2020-01-17 at 2 44 37 PM Screen Shot 2020-01-17 at 2 45 15 PM

hanieel commented 4 years ago

@JosipSylo Have you found a solution or what is causing the problem here???

davegomez commented 4 years ago

This is related to issue #163

jaimecbernardo commented 4 years ago

Hi @JosipSylo , nodejs-mobile-react-native needs to be installed with pod install since version 0.5.0 instead of react-native link. That might be what is causing the issue. If you need to use react-native link, you may need an earlier version of nodejs-mobile-react-native. https://github.com/JaneaSystems/nodejs-mobile-react-native/tree/e1dffb38f0560eaa80a8d69c4102bd7952fce056#installation