-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Include transform in OUTER_PROPS #26611
Conversation
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.
Thank you for the fix!
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.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was successfully merged by @migbot in 0a282c4. When will my fix make it into a release? | Upcoming Releases |
Summary: Without `transform` in `OUTER_PROPS`, the refresh control component would not include `transform: {scaleY: -1}` in its style and so pulling down, rather than up, on a scroll view would trigger a refresh. Fixes #26181 ## Changelog [Android] [Fixed] - Fixed issue with refresh control not working properly on an inverted ScrollView Pull Request resolved: #26611 Test Plan: Updated unit test in splitLayoutProps-test.js. Differential Revision: D17661079 Pulled By: cpojer fbshipit-source-id: 747da27b11c3ca59b7f639f393ae5ac137f5490a
is this actually the intended behavior of I've been using it and had to upgrade to I was expecting it to be the "wrong behavior" of #26181. Is there anyway to opt-out at least? |
Summary: The throttling mechanism for fallbacks should apply to both their appearance _and_ disappearance. This was mostly addressed by #26611. See that PR for additional context. However, a flaw in the implementation is that we only update the the timestamp used for throttling when the fallback initially appears. We don't update it when the real content pops in. If lots of content in separate Suspense trees loads around the same time, you can still get jank. The issue is fixed by updating the throttling timestamp whenever the visibility of a fallback changes. Not just when it appears. DiffTrain build for commit facebook/react@4bfcd02. Reviewed By: hoxyq Differential Revision: D45920350 Pulled By: sammy-SC fbshipit-source-id: f5df1709a66e8014d4458fdfdf960d58e0acc45f
Summary
Without
transform
inOUTER_PROPS
, the refresh control component would not includetransform: {scaleY: -1}
in its style and so pulling down, rather than up, on a scroll view would trigger a refresh.Fixes #26181
Changelog
[Android] [Fixed] - Fixed issue with refresh control not working properly on an inverted ScrollView
Test Plan
Updated unit test in splitLayoutProps-test.js.