Skip to content

The needsCustomLayoutForChildren check is missing from the new React Native architecture #52

Discussion options

You must be logged in to vote

Hi @sammy-SC and @cipolleschi I’ve been working on migrating my navigation library to the new architecture for about 6 months now and this bug is the final blocker! So I’ve freed up some time to work on the PR. But I’m going to need some guidance.

There’s a TODO in the SurfaceMountingManager that says

TODO Check if the parent of the view has to layout the view, or the child has to lay itself out. see NativeViewHierarchyManager.updateLayout

So the call to needsCustomLayoutForChildren is missing from the SurfaceMountingManager. I've checked that adding this call would fix the bug shown in the videos above! But I don’t know how to add this call in for real because I can’t access the parent V…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@grahammendick
Comment options

grahammendick Jul 23, 2022
Collaborator Author

@grahammendick
Comment options

grahammendick Jul 23, 2022
Collaborator Author

@cipolleschi
Comment options

@grahammendick
Comment options

grahammendick Jul 31, 2022
Collaborator Author

Answer selected by grahammendick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants