Upgrade react-navigation/drawer to use our fork#11944
Conversation
|
Confirmed this works on iOS, still working on testing all platforms and gathering screenshots, but I'm opening this up to reviews so that we can get a C+ and reviewer testing in parallel. |
|
@mananjadhav Would you also be able to confirm if sending the message on mobile does not close the keyboard as raised in this bug report? Thank you! |
|
Mobile web on android seems to be losing focus 2022-10-18_14-31-29.mp4 |
|
@stitesExpensify thanks for testing, I think that is not a blocker as that expand issue was reported a while ago, just wanted to confirm. I think the more important one to check is the issue with sending a message and the keyboard closing. |
|
@mountiny @roryabraham The keyboard doesn't close when we scroll. Tried on mWeb Safari and iOS. But it does lose focus when we click on the expand. |
|
Hey, @roryabraham just want to sync with you. I think you used the following PR for the Expensify fork: However, this PR is based on the still-in-development react-navigation version which is for the current react-navigation version |
Losing focus when click on expand on mWeb is not related to this issue. |
|
@roryabraham should we update to what @hannojg has suggested? I think we should try to get this out as soon as possible |
|
My two cents is that using the latest version of |
|
The only reason react-navigation/react-navigation#10928 needs to target react-navigation 7 is because it relies on react-native-gesture-handler 2, and right now react-navgiation 6 has a peer dependency with react-native-gesture-handler >= 1. So that means requiring RNGH 2 is a breaking change. This isn't a concern for us here, because we're already using |
mountiny
left a comment
There was a problem hiding this comment.
Would be great to get this fix out sooner than later, but my mobile setup locally is not working right now, @mananjadhav would you be able to test this properly and fill in the PR reviewer checklist for us please? If everything is fine we can merge this, lots of annoying issues will be fixed.
|
@mananjadhav Could you please test this #11684 (comment) bug on this PR as well? |
|
Team, @parasharrajat I tested the Android composer long press issue as well. I hope I got the reproduction step right. 🎀 👀 🎀
ScreenshotsWebweb-rn-nav-upgrade.movMobile Web - Chromemweb-android-rn-nav-upgrade.movMobile Web - Safarimweb-safari-rn-nav-upgrade.movDesktopdesktop-rn-nav-upgrade.moviOSios-rn-nav-upgrade.movAndroidandroid-rn-nav-upgrade.movLong press Composer android-long-press-composer.mov |
|
Oh yeah @roryabraham I see, that's fine. So you took their |
|
|
|
Adding the CP Staging label to get this out sooner than later since it is evry annoying bug. |
mountiny
left a comment
There was a problem hiding this comment.
@mananjadhav thanks for such rigorous testing 🙇
|
@mountiny looks like this was merged without the Run e2e performance regression tests test passing. Please add a note explaining why this was done and remove the |
|
Everything passed 😡 |
Upgrade react-navigation/drawer to use our fork (cherry picked from commit 1682c12)
…-11944 🍒 Cherry pick PR #11944 to staging 🍒
|
🚀 Cherry-picked to staging by @mountiny in version: 1.2.18-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
1 similar comment
|
🚀 Cherry-picked to staging by @mountiny in version: 1.2.18-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by @chiragsalian in version: 1.2.18-10 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.28-5 🚀
|
Details
Upgrades
@react-navigation/drawerto use our fork (published withgitpkg), to take advantage of this PRFixed Issues
$ #11915
Tests / QA Steps (iOS, Android, mWeb)
Tests / QA Steps (Web, desktop)
Perform some basic regression tests on the drawer component. Verify that you can switch between chats as usual.
PR Review Checklist
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots
Web
Screen.Recording.2022-10-17.at.4.53.27.PM.mov
Mobile Web - Chrome (iOS)
RPReplay_Final1666050991.MP4
Mobile web – Chrome (Android)
screen-20221017-170121.mp4
Mobile Web - Safari
RPReplay_Final1666051086.MP4
Desktop
Screen.Recording.2022-10-17.at.5.03.47.PM.mov
iOS
RPReplay_Final1666050537.MP4
Android
screen-20221017-170920.mp4