feat: migrate onfido native class component to functional#28714
Conversation
|
@abdulrahuman5196 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] |
Reviewer Checklist
Screenshots/VideosWebN/A Mobile Web - ChromeN/A Mobile Web - SafariN/A DesktopN/A iOSScreen.Recording.2023-10-05.at.3.20.57.PM.movAndroidScreen.Recording.2023-10-05.at.3.25.06.PM.mov |
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @aldo-expensify
🎀 👀 🎀
C+ Reviewed
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #16178 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@aldo-expensify Kindly run the workflows to verify before merging. |
aldo-expensify
left a comment
There was a problem hiding this comment.
Thanks! looks good to me!
|
✋ 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/aldo-expensify in version: 1.3.79-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
Details
Migrating class component to functional
Fixed Issues
$ #16178
PROPOSAL:
Tests
Offline 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
n/a
Mobile Web - Chrome
n/a
Mobile Web - Safari
n/a
Desktop
n/a
iOS
ios.native.mov
Android
android.native.mov