Large title fails on the new React Native architecture #43
-
I promise you this is NOT the same bug as I raised earlier about the contentInsetAdjustmentBehavior. This new problem is that large titles don’t work on iOS when the ScrollView is recycled. You can see what I mean in the video below. The first time you navigate to the second screen the 'World' title is large. But the second time you navigate it is small. 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. Note, the apps are built on React Native 0.68 because I couldn’t get pod install working on 0.69. But I manually applied the contentInsetAdjustmentBehavior patch from 0.69.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Thank you @grahammendick for the bug report and suggested fix. Are you interested in opening a PR to fix the issue? |
Beta Was this translation helpful? Give feedback.
-
Hey @grahammendick, thank you for awesome repro! I looked into it and found the problem. Prop Fix is on the way. Here is a video after the fix: |
Beta Was this translation helpful? Give feedback.
-
Hey @sammy-SC, I fixed it and have raised a PR in the react native repo!! I worked a looong time on it over the last few days and tried a lot of different things (I was a bit like a monkey at a typewriter). Eventually I stumbled upon resetting the Here it is in action Screen.Recording.2022-07-18.at.21.31.11.mov |
Beta Was this translation helpful? Give feedback.
Hey @sammy-SC,
I fixed it and have raised a PR in the react native repo!!
I worked a looong time on it over the last few days and tried a lot of different things (I was a bit like a monkey at a typewriter). Eventually I stumbled upon resetting the
frame
size when the view is recycled.Here it is in action
Screen.Recording.2022-07-18.at.21.31.11.mov