-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
KeyboardProvider , UI bug after device rotate , using keyboard-controller and react-navigation #547
Comments
@term51 very interesting! Actually I'm always testing rotation and in my example app it works without artificial paddings (Pixel 7 Pro, Android 14):
I think it could be related to the usage of Would you mind to provide a minimal reproduction repo? I'll try to play around with bottom tabs navigation etc., but it would significantly speed up the fix development if you could provide a minimal code needed to reproduce the problem ❤️ |
Okay, I'm doing it now. |
https://github.com/term51/for-fix-ui-bug The problem remains, by the way, the shift is relative to the turn. |
Thank you for reproduction @term51! I tend to think that the problem is in @term51 do you think that you can strictly specify portrait mode in your application (as a workaround) while I'm preparing a fix? 🤔 |
No problem, it can be wait, thank you for such a quick response |
The fix is published under |
Describe the bug
When I finished the UI I decided to test the display with a horizontal screen and noticed that the UI shifts depending on the screen rotation. Initially, I didn't use the react-native-safe-area-context component, when I figured out what the problem was I saw that your example used it, I put it in but it didn't work. I don't know what to do with it, I tried removing components from the list one by one, but the problem disappeared only after removing KeyboardProvider. At this point, the only option is to remove your library and consider how to customize the Keyboard from react-native to make it work properly. If you need additional information, please reply as soon as possible.
versions of some of the usable libraries
"react-native-reanimated": "3.15.0",
"react-native-paper": "5.12.5",
"@react-navigation/bottom-tabs": "6.6.1",
"@react-navigation/native": "6.1.18",
"@react-navigation/native-stack": "6.11.0",
"@react-navigation/stack": "6.4.1",
Code snippet
To Reproduce
Steps to reproduce the behavior:
Expected behavior
bottom and top are formatted to fit the width of the screen
Screenshots
Normal
Rotated
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: