-
Notifications
You must be signed in to change notification settings - Fork 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
[navigation-refactor ] Disable KeyboardAvoidingView for the BaseSidebarScreen and fix KeyboardAvoidingView used with react-freeze #21124
Conversation
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.
Interesting, thanks for the fix, I have started the build so we can test this on device.
@fedirjh Would you be able to test this one, I think you said you were able to repro in simulator too
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
Tested the builds and seems to be working well for me on iOS native and mWeb 🎉 RPReplay_Final1687276656.mp4RPReplay_Final1687276326.mp4 |
Let's wait with this one for a moment. It fixes the problem with the sidebar but @WoLewicki discovered that it may also occur for different screens (e.g. report screen) We are looking for a more complete solution |
Here you can see the problem that we found #20514 (comment) |
thanks for an update! |
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.
Hey, I updated the patch with the code that I proposed here facebook/react-native#38074 to fix this upstream |
@adamgrzybowski there is a weird behaviour on IOS safari when you navigate back from thread to parent report Screen.Recording.2023-06-26.at.8.09.53.PM.mov |
Hey, @fedirjh
Good catch but I think this is a candidate for a separate issue. It's related to the keyboard but not to the KeyboardAvoidingView. This component is used only in the iOS app. So it may be a little out of the scope of this PR. This PR still should fix the problem with the glitch on iOS app |
@adamgrzybowski Aren’t we disabling the |
For IOS the tests looks good to me Test1.mp4Test2.mp4 |
Yeah, this issue evolved a little 😄 I will update the title of this PR. What we are doing currently is:
But the What you can observe in the browser is another mechanism. I guess it's just changing the size of the website to make room for the keyboard. But it's not handled by this component. |
@adamgrzybowski Thank you for the clarification 🙌🏼 , that make sense, I think we should handle other case separately. |
Reviewer Checklist
Screenshots/VideosMobile Web - ChromeChrome.movMobile Web - SafariSafari.moviOSTest1.mp4Test2.mp4AndroidAndroid.mov |
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.
LGTM and tests well.
All yours @amyevans
For the iOS Safari bug identified, do you want me to create a bug issue and assign to you @adamgrzybowski or should we just send it through the regular bug reporting workflow (open to the community for proposals)? |
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.
Code looks good. I tested on both a sim and real device and it tests well.
🚀
@fedirjh want to report it in #expensify-bugs and collect the bounty? We can then assign @adamgrzybowski, or not, based on his answer |
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Reported here https://expensify.slack.com/archives/C049HHMV9SM/p1687902430669059. |
🚀 Deployed to staging by https://github.com/amyevans in version: 1.3.34-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.34-1 🚀
|
- if (duration && easing) { | ||
+ this._setBottom(height); | ||
+ | ||
+ if (enabled && duration && easing) { |
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.
This line was overlooked and caused #22206. enabled
should be replaced with this.props.enabled
.
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.
Should I create a new PR for that? @0xmiroslav
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.
@adamgrzybowski there's already PR from contributor. You can still review and approve it.
Details
Disable the KeyboardAvoidingView for the chat list screen. It should prevent the glitch described in the issue.
I couldn't find any use case for this functionality on this screen so I am assuming it's not necessary.
NOTE:
KeyboardAvoidingView
is used only in a file with ios.js extension so these changes shouldn't affect other platforms. For other platforms, it's simply aView
component.NOTE 2: There is a patch included so make sure to install it
Fixed Issues
$ #20514
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
It looks like sometimes you may need to repeat these actions a few times to reproduce this bug, so make sure to test it well.
Offline tests
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 methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Mobile Web - Chrome
androidWeb.mov
Mobile Web - Safari
iosWeb.mov
Desktop
iOS
ios.mov
Android
android.mov