-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 👌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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-native
to 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-mobile
repo level withpatch-package
.The mechanism is very simple. I created a patch that is in the
patches
directory and contains my changes. The patch is applied in theprepare
hook, so it doesn't require any additional steps.So the flow looks like:
patches
directory (it's done inprepare
hook)More info about patch-package - https://callstack.com/blog/say-goodbye-to-old-fashioned-forks-thanks-to-the-patch-package/
To test:
yarn install
yarn ios
PR submission checklist:
RELEASE-NOTES.txt
if necessary.