Skip to content

Instantly share code, notes, and snippets.

@GingerBear
Last active March 2, 2018 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GingerBear/c517a154f9e1e8ec755c37f924d16262 to your computer and use it in GitHub Desktop.
Save GingerBear/c517a154f9e1e8ec755c37f924d16262 to your computer and use it in GitHub Desktop.
in case react-native-git-upgrade is not working

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment