The needsCustomLayoutForChildren check is missing from the new React Native architecture #52
-
I've started updating my navigation library to work with the new architecture and I've run into a problem on Android. The new React Native architecture doesn't check Reproduction of the problemI've created a repository with a reproduction of the bug. The README in the repo contains the steps needed to recreate the problem. There are two apps in the repo, one built with the old architecture and the other built with the new architecture. You can see that the bug only happens on the new architecture. The only dependencies in the apps are the 3 packages that make up my navigation library. You can see the close button appears on the old architecture Screen.Recording.2022-06-25.at.21.29.40.movBut the close button is missing on the new architecture because React Native has positioned the action view in the wrong place Screen.Recording.2022-06-25.at.21.32.50.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
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
So the call to |
Beta Was this translation helpful? Give feedback.
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
So the call to
needsCustomLayoutForChildren
is missing from theSurfaceMountingManager
. 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 parentV…