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 16.0.0-alpha.3 on Stable branch? #717

Closed
brunocascio opened this issue Apr 5, 2017 · 9 comments
Closed

react 16.0.0-alpha.3 on Stable branch? #717

brunocascio opened this issue Apr 5, 2017 · 9 comments

Comments

@brunocascio
Copy link

Why do you use an alpha version on your stable branch?
It's not compatible with previous versions...

@brunocascio brunocascio changed the title "react": "^16.0.0-alpha.3" on Stable branch? react 16.0.0-alpha.3 on Stable branch? Apr 5, 2017
@PEM--
Copy link

PEM-- commented Apr 5, 2017

Indeed this was creating a mess when JS was bundled. I've reverted to 2.1.0.

@irwing-reza
Copy link

React Native 0.43 moved to "react": "16.0.0-alpha.6"

Might also be related to this

@PEM--
Copy link

PEM-- commented Apr 5, 2017

Yep, currently, both packages puts you in the same mess. If you're using react-native > 0.42.3 and/or native-base > 2.1.0, you can't compile anymore.

@brunocascio
Copy link
Author

brunocascio commented Apr 5, 2017

In order to use the alpha version, you need to run:

rm -rf node_modules && npm install

Clean ios/android build folder:

rm -rf android/build && rm -rf ios/build

After that, just run as usual:

react-native run-ios or react-native run-android

@StevePotter
Copy link
Contributor

Why the requirement of React Native 0.43? It just got released and uses React 16 but all 3rd party libraries are on React 15. Why not just require RN >= 0.42? That would fix all the NPM peer dependency issues.

@rob-64
Copy link

rob-64 commented Apr 10, 2017

I agree with last comment.. moving to 0.43 breaks other libraries like react-navigation

@csjcode
Copy link

csjcode commented Apr 16, 2017

Same problem here... I moved to react-native 0.43, upgraded nativebase and it broke my project. Instructions above for using the react alpha branch didn't work for me.

Now, I got my app working again by reverting to 0.42 and reinstall native-base back to 2.0.12 (as later versions seem to require 0.43).

@jamesjessian
Copy link

I've spent a while getting my build stable again too. I've managed to settle for:

    "react": "~15.4.0",
    "react-native": "0.42.3",
    "native-base": "2.1.0",
    "react-navigation": "^1.0.0-beta.7",

I previously had: "native-base": "^2.1.0",

@shivrajkumar
Copy link
Collaborator

RN > and < 43 dependency issue fixed with v2.1.3
Works for both RN > 43 and RN < 43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants