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 update #525

Closed
punksta opened this issue Jun 16, 2017 · 4 comments
Closed

react update #525

punksta opened this issue Jun 16, 2017 · 4 comments

Comments

@punksta
Copy link

punksta commented Jun 16, 2017

Hello! Thanks for nice library.
Last versions of react-native uses newer version of react

    "react": "16.0.0-alpha.12",
    "react-native": "0.45.0",
@necolas
Copy link
Owner

necolas commented Jun 16, 2017

You'll have to keep using 15.5 or 15.6 rather than alpha versions

@necolas necolas closed this as completed Jun 16, 2017
@zarcode
Copy link

zarcode commented Jun 16, 2017

@necolas yes, but is it possible to use them both react-native-web and react-native in same project and not to downgrade react-native version?

@RangerMauve
Copy link

RangerMauve commented Jun 16, 2017

@zarcode Not easily. At that point it'd be easiest to split your project into two.

You could try to install the older verision of React manually in the node_modules/react-native-web folder and then add an alias in your webpack config to map "react": "./node_modules/react-native-web/node_modules/react".

That way when the react-native bundler runs it'll use the more recent React version, and when you build for web using webpack, it'll use the older version of React that you bundled in react-native-web. This approach is pretty fragile, however.

@necolas
Copy link
Owner

necolas commented Jun 16, 2017

Also see #364, which is about getting React 16 to expose enough APIs for RNW to use the ResponderEventPlugin. Please comment on the relevant React issue too if this matters to you

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

4 participants