Use patch-package to fix max-depth issue in react-native (temporary)#1762
Use patch-package to fix max-depth issue in react-native (temporary)#1762
Conversation
|
Aha, didn't know we aren't going to use our fork anymore. I haven't tested this yet but can't think of any reasons to not to try. cc @koke I have a question. Are we going to need to update our patch file name "react-native+0.60.0-patched.patch" as "react-native+0.61.2-patched.patch" ? If so, I suggest doing that in the existing PR once we merge this one. |
Yes we would need to create a new patch. But it is really easy, just run command |
I haven't tested this, but it looks like a good approach to me 👌 |
|
That crash was fixed on the release branch with this PR. |
|
Piotr 👋 Could you update the pr’s branch so the fix is included? Thanks! |
@koke I think the issue is in the bordering logic. Adding condition which eliminates top margin in second child of selected item should fix that behaviour. |
@jbinda could you open an issue for that and add to callstack board? Thanks in advance. |
Sure |


Fixes #1747
There is an issue on iOS with nested views.
This is fixed here facebook/react-native#26986
It's merged to master and will land in 0.62 version of
react-native, however it is a blocker for us since we can not nest more than 3 group blocks because of that. I know there is a PR with updatingreact-nativeto 0.61 but it will not solve that issue since the fix is not there yet. We could cherry-pick this commit to our fork but as I can see in this PR #1450 we will not use our fork anymore.That's why I created this PR - to handle this on
gutenberg-mobilerepo level withpatch-package.The mechanism is very simple. I created a patch that is in the
patchesdirectory and contains my changes. The patch is applied in thepreparehook, so it doesn't require any additional steps.So the flow looks like:
patchesdirectory (it's done inpreparehook)More info about patch-package - https://callstack.com/blog/say-goodbye-to-old-fashioned-forks-thanks-to-the-patch-package/
To test:
yarn installyarn iosPR submission checklist:
RELEASE-NOTES.txtif necessary.