27 files

hairline-border-contents-center.patch
hairline-border-contents-center.patch.md
hermes-inspector-pimpl-destructor.patch
hermes-inspector-pimpl-destructor.patch.md
hermes-tarball-root.patch
hermes-tarball-root.patch.md
inline-view-baseline.patch
inline-view-baseline.patch.md
packager-connection-mutex-include.patch
packager-connection-mutex-include.patch.md
pr-58364-f20f857241.patch
pr-58364-f20f857241.patch.md
prepared-text-layout.patch
prepared-text-layout.patch.md
profile-atomic-exchange.patch
profile-atomic-exchange.patch.md
README.md
refresh-control-defer-props.patch
refresh-control-defer-props.patch.md
scheduler-delegate-invalidation.patch
scheduler-delegate-invalidation.patch.md
scrollview-disable-recycling.patch
scrollview-disable-recycling.patch.md
text-input-reveal-caret.patch
text-input-reveal-caret.patch.md
view-group-clipping-null-child.patch
view-group-clipping-null-child.patch.md
README.md

react-native patches #

pnpm supports one patch per package, so patches/react-native@<version>.patch is generated from the patches in this directory. Each one is a diff against pristine react-native and has a .patch.md explaining it. Patches that backport an upstream PR are named pr-<number>-<commit sha>.patch, using the first 10 characters of the commit that landed (or of the PR head).

Regenerate the combined patch after any change here:

pnpm patch:react-native

Editing a patch #

pnpm patch react-native@<version> --ignore-existing --edit-dir node_modules/.edit-react-native
cd node_modules/.edit-react-native
git init -q && git add -A && git commit -qm pristine
git apply ../../patches/react-native/<name>.patch # skip for a new patch
# edit files, then:
git add -A && git diff --cached > ../../patches/react-native/<name>.patch

Upgrading react-native #

Update the version in the patch:react-native script, remove the old entry from patchedDependencies in pnpm-workspace.yaml along with the old combined patch, and regenerate. For patches that no longer apply, follow the steps above with git apply --reject and port the .rej hunks by hand.