I’m trying to get started working with react-native and I want to use realm as well. This is a brand new project here are my steps:
$ react-native init BibleBinderRN $ cd BibleBinderRN/ $ react-native -v
At this point I see:
react-native-cli: 2.0.1
react-native: 0.45.1
Next:
$ npm install --save realm $ react-native -v
Result:
react-native-cli: 2.0.1
react-native: n/a - not inside a React Native project directory
I don’t understand why this is not an RN project directory at this point. Can anyone help?
Answer
I’m relatively new on React Native however I got the same error the last days.
Indeed, when I installed different plugins with the command npm install blabla --save
, just after I wasn’t able to run command such as react-native link ...
or even react-native run-android
After reading different topics, the solution I found was to do it with yarn. Indeed, with the command yarn add blabla
it works perfectly. Some explanations I have found on github was about a problem of npm versions.
However, if you found a solution, I’m interest in !