to update react-native in BBRN:
- update package.json name to
bbrn
react-native-git-upgrade 0.54.0
- will noticed that nothing happened
- do the following steps perform the actual upgrade
facebook/react-native#12112 (comment)
I discovered that a .patch
file containing the diffs exists in $TMPDIR/react-native-git-upgrade/upgrade_0.40.0_0.42.0.patch
.
I took a look at this file, and sure enough, there's all my diffs.
So then I use git apply --reject and it all works fine. Working reproducible steps
- Inside your working directory, run
react-native-git-upgrade
- Upon completion, ls
$TMPDIR/react-native-git-upgrade
-- you'll find your corresponding.patch
file, the name will correspond to the versions you're upgrading between. - Inside your working directory, run
git apply <path to patch> --reject