-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
useAnimatedKeyboard break navigation color #6043
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Snack or a link to a repository section. |
This might also be relevant, these are the settings of the nav bar:
|
bottom inset from |
Hi, could you provide a snack or repo with reproduction and some steps or video what's the issue? At this point, I'm not sure.
But does this cause any problems for you? It's is possible that it changes - we turn immersive mode to listen to keyboard changes and apply margins to compensate for that. |
@maciekstosio I can confirm including Repro steps:
Maybe related to this call? Lines 78 to 80 in 4e75ca1
seems related: https://stackoverflow.com/questions/64153785/android-11-window-setdecorfitssystemwindow-doesnt-show-screen-behind-status-a |
What is the purpose of Line 65 in 3188d92
that seems to be what's causing the issue -- if I update insets to if (mKeyboard.getState() == KeyboardState.OPEN) {
mKeyboard.updateHeight(insets);
mNotifyAboutKeyboardChange.call();
}
setWindowInsets(defaultInsets);
updateInsets(0, 0); // <-- added this line
return defaultInsets; |
Hi, sorry for long delay and thank you for your input. To observe keyboard changes we need I guess this will be the same problem as with status bar where we just have special flag for that - |
Btw as a workaround maybe you could use |
How can I disable padding of the bottom navigation? I want to fill the whole screen |
@computerjazz Hi, I added PR that adds a flag that removes the inset for bottom navigation (#6431), but I'm debugging the "clean up" behavior. Correct me If I'm wrong - when you run your snack without |
Description
After upgrading to the latest version with expo@51 when I use
keyboardInfoAnimated
inside of a modal I've started observing changes in the color of bottom navigation on Android.Steps to reproduce
keyboardInfoAnimated
from inside of a modalSnack or a link to a repository
Reanimated version
3.11.0
React Native version
0.74.1
Platforms
Android
JavaScript runtime
None
Workflow
None
Architecture
None
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: