expo / ex-navigation

Route-centric navigation for React Native
997 stars 201 forks source link

error when running example app #474

Open rmanrique opened 7 years ago

rmanrique commented 7 years ago

I cloned the repo and followed the instructions on how to run the example app. When I tried running it, it get an error stating "undifined is not an object( evaluating 'ViewPropTypes.style')" This happens on both my android device and the ios Simulator. Attached is a screenshot.

screen shot 2017-05-18 at 3 26 27 pm

bingocaller commented 7 years ago

This has something to do with View.propTypes -> ViewPropTypes. I was able to get my app running by downgrading ex-navigation to version 2.11.2 and react-native to version 0.43.4 (both versions are from before the change from View.propTypes to ViewPropTypes).

bingocaller commented 7 years ago

Just an update on this. I was able to get ex-navigation working again by doing a dependency update/upgrade. The following constellation of versions works like a charm for me:

"@expo/ex-navigation": "^3.0.0",
"expo": "^18.0.3",
"react": "16.0.0-alpha.12",
"react-native": "^0.45.1"