-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove overriden createJSModules #895
Conversation
Since of recently in master the unused createJSModules has been removed and ReactPackage's no longer contain the definition of createJSModules. There for it must be removed in order to not yield a compile error. This is breaking change. facebook/react-native@ce6fb33
This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request. |
Hi @ptomasroos, thank you for the contribution! LGTM, we'll merge it just before releasing new version of |
@sergey-akhalkov Could this be merged soon? 0.47.0-rc is now released and this is needed for it to work. |
Hi @janicduplessis, thanks for reaching us. We are following the approach when our master branch is always compatible with the latest stable version of RN (the current stable version is 0.46.4). So we are going to merge this PR just after RN 0.47 will be released, then we'll make sure if new version of RN does not break us, then we'll release new version of react-native-code-push that will support RN 0.47. |
RN 0.47.0 was released today, please merge this PR. |
Hi @patw0929, sure! We are going to test the PR with RN 0.47.0 today and merge it if everything is ok. |
Hey @ptomasroos, @janicduplessis, @patw0929, the PR has been verified and merged! |
@sergey-akhalkov which version of |
@maxkomarychev currently you can update from |
Hey guys, we've released [email protected] - please let us know if you see any issues. |
is there no backwards compatibility < 0.47? |
@jjdp sure that's a kind of solution but from our point of view that looks a little... hacky?
That way we have released new update with incremented major version which means that other users (who use RN < 0.47) should not be affected. More than that - that new release (5.0.0) do nothing but only add compatibility with latest react-native. So you should not worry about this release at all if you are on RN < 47 and there should be no issues with this release if you upgrade to RN47 and higher later. |
ah that makes sense |
@max-mironov so far as I can tell, there's actually nothing in that commit that "officially recommends" removing the entire method from external libraries. The recommendation is
By removing the Here's a clean example of how to do it while preserving backwards-compatibility: https://github.com/rebeccahughes/react-native-device-info/pull/191/files I understand that people on |
Hi @cooperka, agreed, thanks for voicing your concerns, that really makes sense for users to restore backwards compatibility for RN 0.46.x So we are going to do the following - we'll wait for bunch of fixed bugs or implemented features and then we'll release new version of react-native-code-push (saying 5.1.0 or 5.0.1) that will also include restoring compatibility with RN 0.46.x Please let me know if you have any other thoughts or considerations. |
Thanks for the reply @sergey-akhalkov, I think that sounds good! Cheers 🍻 |
Since of recently in master the unused createJSModules has been removed and ReactPackage's no longer contain the definition of createJSModules. There for it must be removed in order to not yield a compile error. This is breaking change.
facebook/react-native@ce6fb33