-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Upgrade to [email protected] #255
Conversation
I tried this locally and found that the touchables stopped working in the examples. |
The problem seems to be that the |
Sigh. Because [email protected] is going to be a giant ball of pre-built code, we might need to update the usage instructions to suggest aliasing 'react' to 'react/lib/React'. I think this will let your bundler de-dupe all the modules shared between 'react' and 'react-dom'. |
Thanks for your effort to make the upgrade work. Upgrading is especially necessary because running jest tests while using react < 15.4 is currently impossible. |
IIRC, not impossible if you include |
I just realised that @MoOx has raised the issue originally for the same purpose. Thanks for the tip @necolas. Hopefully we get a feedback about facebook/react#8370 soon. |
Any idea when this will get merged? |
When facebook/react#8370 is resolved |
@MoOx would you mind rebasing and updating the branch. May make it easier to debug the (possible) React issue. |
PR updated. (There are some changes in the yarn.lock file, I guess it's normal since we changed some packages - I just "yarn"ed once before running the tests). |
This patch solves the following problem
I tried to update react to latest 15.4.0 to be able to use jest without this blocking issue but it seems RNW use some /lib/* stuff.
Test plan
I just upgraded all reference to react-dom. With react 15.4.0, some lib/* redundant in both react and react-dom packages but I think it's better to rely on a single package so I just switched all references to
react/lib/
toreact-dom/lib/
and it worked.This pull request
Note: Tests were breaking before this update, with the changes included in this PR they pass.