-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: disable KeyboardAvoidingView
in bottom-tab navigator
#42257
fix: disable KeyboardAvoidingView
in bottom-tab navigator
#42257
Conversation
@s77rt can you please do a checklist on this one? Thank you 🙇 |
src/libs/Navigation/AppNavigator/createCustomBottomTabNavigator/index.tsx
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: mWeb ChromeNetworking issue iOS: Nativeios.moviOS: mWeb Safarimweb-safari.mov |
The ts errors are unrelated to this PR. Try merge main see if they got fixed already |
8669341
to
f059919
Compare
Just rebased 👀 Hopefully TS checks will pass now 🤞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but we are still holding nay merges for now
@mountiny I think a week has passed already - can we merge it now? Or we are still waiting for a stable release? |
looking into getting this merged |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.77-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
Details
Disabled
KeyboardAvoidingView
forBottomTabBar
. InBottomTabNavigator
we don't have screens that may trigger keyboard appearance, but keeping there activeKeyboardAvoidingView
triggers a layout shift when keyboard is shown on the other screen in nested stack:kav-bottom-tab-trimmed.mp4
without-kav-bottom-tab-bar.mp4
The issue and fix was discovered when I was fixing #42143 and was trying to understand what causes animation freezes (this change doesn't resolve animation lags, but improves UX part of the app - it's very strange to see two animations on two screens simultaneously).
Fixed Issues
$ #37923
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop