Open chrispader opened 5 days ago
@chrispader are you sure you linked the proper repro for the issue? It seems like the modal issue.
Ok nvm I can see that there is a TextInput
there also.
@chrispader are you sure you linked the proper repro for the issue? It seems like the modal issue.
yes, it's the same repro project. Also you cannot see the cut off display, but in react-devtools
the measurements are wrong.
You can also test it in E/App by opening the composer in a report and going to the details while open
Hmm so do you know why I cannot see the cut off display in the repro, but it is visible in E/App?
Also, I can see only the previous screen is cut-off: compared to second:
Maybe the issue is resolved on the newest main
and/or in RN 0.76? Did you test it on newest main
of react-native-screens
?
Description
When using
@react-navigation/native-stack
in RNv0.75.2
under New Architecture, new screens on Android will be cut off on the bottom by the height of the keyboard, when navigating from a screen while the keyboard is open.In this video, you can see navigating both while the keyboard is open and while it's closed.
https://github.com/user-attachments/assets/f5a1fbf4-ea3e-4403-a716-037266cf3871
Sometimes the screen is cut off completely, while other times the screen will flicker a few times and then either render in full or be cut off. The actual end result is not always 100% reproducible.
Also, the layout measurements received through
react-devtools
are not covering the whole screen:Steps to reproduce
On Android:
@react-navigation/native-stack
TextInput
Expected behaviour: The screen will display in full and the keyboard is hidden. The layout measurements (e.g. in
react-devtools
) cover the whole screenActual behaviour: The screen is cut off at the the bottom by the height of the keyboard, even though the keyboard is not displayed.
Snack or a link to a repository
https://github.com/chrispader/rn-new-arch-native-stack-modal-issue-repro
Screens version
3.34.0
React Native version
0.75.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Real device
Device model
Samsung Galaxy S21 / Samung Galaxy S10e
Acknowledgements
Yes