1

I'm working on react-native. I recently came across Shoutem UI. I followed the steps mentioned here. However, I'm getting this error screen. What could be wrong?

enter image description here

LEE
  • 3,335
  • 8
  • 40
  • 70
  • Did you do `$ react-native init HelloWorld` to begin with? Also, did you run `$ npm start` in the `HelloWorld` directory before doing `$ react-native run-android`? Also check the last line of `index.android.js` and make sure you used AppRegistry correctly. – Vladimir Vdović May 28 '17 at 19:02
  • @VladimirVdovic I ran `npm install` and now it it shows `undefined is not an object` error and then it crashes. – LEE May 29 '17 at 01:36

1 Answers1

0

NavigationExperimental doesn't exist past React Native v0.43.4, so you probably have v0.44 or higher.

You'll have to edit your package.json's react-native dependency:

"react-native": "^0.43.0"

Afterwards:

$ cd ProjectName
$ rm -rf node_modules     //get rid of previous dependencies
$ npm install             //install dependencies from package.json
$ react-native link
$ react-native run-android

This solution is from a github issue, from the user dobrienlzd.