Refactor EmojiPickerMenu native to functional component and using scrollTo method#23854
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@shubham1206agra Let's rebump the reanimated version to 3.4.0, without that we won't be able to test the crash. |
|
@mananjadhav Let me rebump in a separate PR so that any other problem with v3.4 should not revert this PR as it works at v3.1 also. |
|
@shubham1206agra the challenge for the us to reproduce the crash would then require two PRs. Are you suggesting you'll raise another PR right after this is merged? I think it's double the effort. |
|
I can open the PR simultaneously and add the note here if in any case this PR should be reverted, revert the bump too |
Let's merge the rebump first. |
|
@shubham1206agra The app crashes on when I submit an emoji. |
|
Can you quickly send me error log or repro steps |
|
Steps to reproduce on mobile app:
|
|
Can't reproduce it Screen.Recording.2023-07-31.at.10.19.54.AM.mov |
|
Send me the error log so I can check what's the issue |
|
Still can't reproduce :( |
|
@mananjadhav ?? |
|
@mananjadhav Looks like you haven't downgraded to v3.1 See this #23151 (comment) |
|
@shubham1206agra @mananjadhav Jumping in for urgency purposes of the RN 0.72 update #18507 we also need to bump the reanimated version here to |
|
SWM will look into this |
It is done. You can test now. It should be working fine now. :) |
|
This PR software-mansion/react-native-reanimated#4503 introduced changes to We should also look out for software-mansion/react-native-reanimated#4595 in the future updates once merged. |
|
@mananjadhav @mountiny Can you check now? |
|
Thanks @shubham1206agra! Can you please retest now @shubham1206agra |
|
@mountiny I think you meant me? I'll be on this in an hour. |
|
Correct haha thanks |
Reviewer Checklist
Screenshots/VideosWebweb-reanimated-upgrade.movMobile Web - Chromemweb-chrome-reanimated-upgrade.movMobile Web - Safarimweb-safari-reanimated-upgrade.movDesktopdesktop-reanimated-upgrade.moviOSios-reanimated-upgrade.movAndroidandroid-reanimated-upgrade.mov |
|
@shubham1206agra Thanks for the updated changes. This works fine. @stitesExpensify @mountiny This seems to be working fine. 🎀 👀 🎀 C+ reviewed. |
|
Going to merge this to speed up the react native update |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
There was an old checklist, everything checked off on the latest one |
|
✋ 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.3.49-0 🚀
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.50-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.49-3 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
Details
Fixed Issues
$ #23716
PROPOSAL: #23716 (comment)
Tests / QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Screen.Recording.2023-07-29.at.5.11.45.PM.mov
Android
Screen.Recording.2023-07-29.at.5.22.23.PM.mov