-
-
Notifications
You must be signed in to change notification settings - Fork 815
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
[Bug] [iOS]: Rotating to landscape before entering a screen with the bottom sheet will cause the keyboard to cover the text input #2025
Comments
Same problem here too. Thanks for the 1279 reference. Seems like it's the culprit. That's our current patch which works better. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Not stale, and I can confirm that the patch suggested by @adrianv-synergy above works |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
|
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
iOS
What happened?
It would seem that the logic featuring the orientation of the device is flawed.
When outside the screen containing the bottom sheet, if you change orientation of the device (ex. enter app in portrait mode on tablet, then rotate to landscape), when you focus into the BottomSheetTextInput, the bottom sheet doesn't push up to the correct heigh as it should. This leads the keyboard to cover the text input and bottom sheet.
I suspect this issue is related to #1279 , and that the issue is the use of
Dimensions.get('window');
instead ofuseWindowDimensions();
, but I am uncertain. On theDimensions.get('window');
page it recommends to useuseWindowDimensions()
anyways, so maybe it's worth considering regardless? 🤷A video of the code provided in expo, but on my iOS Simulator
Simulator.Screen.Recording.-.iPad.Pro.12.9-inch.6th.generation.-.2024-11-04.at.16.15.28.mp4
Reproduction steps
Result -> The keyboard covers the text input, almost like the bottom sheet isn't pushing up enough
Reproduction sample
https://snack.expo.dev/@mheddomagic/bottom-sheet---rotating-issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: