From a5c41612a06984e8db53c3937b01befed88f0d60 Mon Sep 17 00:00:00 2001 From: Volodymyr Kozieiev Date: Mon, 12 Jun 2023 13:17:48 +0100 Subject: [PATCH] Information about patching 3rd parties (#16249) --- doc/README.md | 2 ++ doc/patching.md | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 doc/patching.md diff --git a/doc/README.md b/doc/README.md index fb585d210f..54d64c20b3 100644 --- a/doc/README.md +++ b/doc/README.md @@ -20,6 +20,8 @@ [Debugging](debugging.md) +[Patching](patching.md) + ## Testing diff --git a/doc/patching.md b/doc/patching.md new file mode 100644 index 0000000000..1e27a58e6d --- /dev/null +++ b/doc/patching.md @@ -0,0 +1,13 @@ +# Patching + +## Libraries +If 3rd party library has an issue and fix is not yet released (or we can't switch to a new release), we use forks. Fix should be commited to the fork, tagged and referenced from package.json. + +Example: [`react-native-hole-view`](https://github.com/status-im/react-native-hole-view#refs/tags/v2.1.1-status) + +## React Native +When patch need to be applied to React Native itself Status does patching with Nix instead of doing it nodejs-way. + +Patches should be added to [this file](https://github.com/status-im/status-mobile/blob/develop/nix/deps/nodejs-patched/default.nix). + +Example: [patching `react-native/Yoga` to build app with XCode 14.3](https://github.com/status-im/status-mobile/pull/15589)