-
Notifications
You must be signed in to change notification settings - Fork 3.5k
RoomNameInput - Migrate setNativeProps to state #11037
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
RoomNameInput - Migrate setNativeProps to state #11037
Conversation
|
@rushatgabhane is this ready for review? |
|
@luacmartins yes |
luacmartins
left a comment
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.
@rushatgabhane I'm having issues with this one. I can't type anything into RoomNameInput 🤔
|
@luacmartins sorry for the oversight, it is working now. I'll complete the checklist tomorrow EOD |
|
Thanks for the fix @rushatgabhane! Works well now :) |
|
@stitesExpensify checklist completed! |
|
|
Thanks @rushatgabhane. All yours @stitesExpensify |
|
✋ 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 @luacmartins in version: 1.2.5-0 🚀
|
|
🚀 Deployed to production by @luacmartins in version: 1.2.5-2 🚀
|
Details
setNativePropswill not be supported in the post-Fabric world (docs). Removing it's usage is a prerequisite to enable Fabric in #8503I'm creating multiple PRs to migrate it's usage. This is one of many.
Usage of
setNativePropsis migrated to state, andRoomNameInputwas modified to support controlled inputs using value prop.Fixed Issues
$ #11052
Tests
This step is not applicable for QA - Room name input
Screen.Recording.2022-09-10.at.6.31.51.PM.mov
PR Review Checklist
Contributor (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 */displayNamepropertythisproperly 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 Contributor+ 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 */displayNamepropertythisproperly 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)QA Steps
Regression tests only
Screenshots
Web
Screen.Recording.2022-09-22.at.12.20.30.AM.mov
Mobile Web
Screen.Recording.2022-09-22.at.12.27.24.AM.mov
Desktop
Screen.Recording.2022-09-22.at.12.21.20.AM.mov
iOS
Screen.Recording.2022-09-22.at.12.32.07.AM.mov
Android
android.mp4