-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
InvertedFlatList - Migrate setNativeProps and pass style prop #11035
InvertedFlatList - Migrate setNativeProps and pass style prop #11035
Conversation
@rushatgabhane is this ready for review? |
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 tested well! Please complete the checklist so we can get this merged!
@luacmartins checklist filled |
|
Thanks @rushatgabhane. All yours @stitesExpensify! |
@stitesExpensify looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
✋ 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 @stitesExpensify in version: 1.2.7-0 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.2.7-2 🚀
|
@stitesExpensify @rushatgabhane @luacmartins FYI It looks like this was the root of a scroll speed regression - see #10654 for more details. Thanks |
Thank you @laurenreidexpensify Disagree that this PR caused the regression. Because the scrolling issue was reported before this PR got merged. |
Details
setNativeProps
will 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
setNativeProps
is migrated by passing translate0InvertY in the style propFixed Issues
$ #11054
Tests
On Safari and Firefox,
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
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)QA Steps
On Safari and Firefox,
Screenshots
Web
Screen.Recording.2022-09-22.at.1.32.26.AM.mov
Mobile Web
Screen.Recording.2022-09-22.at.1.34.27.AM.mov
Desktop
Screen.Recording.2022-09-22.at.1.33.16.AM.mov
iOS
Screen.Recording.2022-09-22.at.1.35.04.AM.mov
Android
WhatsApp.Video.2022-09-22.at.01.36.01.mp4