Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

migbot
Copy link
Contributor

@migbot migbot commented Sep 27, 2019

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

Test Plan

Updated unit test in splitLayoutProps-test.js.

@react-native-bot react-native-bot added Bug Platform: Android Android applications. labels Sep 27, 2019
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 27, 2019
Copy link
Contributor

@cpojer cpojer left a 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!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @migbot in 0a282c4.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Sep 30, 2019
@migbot migbot deleted the fix-android-inverted-refresh branch September 30, 2019 14:19
grabbou pushed a commit that referenced this pull request Oct 2, 2019
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
@xxRockOnxx
Copy link

is this actually the intended behavior of inverted?

I've been using it and had to upgrade to 0.61.2 this day for a fix i needed but now my Chat screen when loading earlier messages shows the RefreshControl at the bottom.

I was expecting it to be the "wrong behavior" of #26181. Is there anyway to opt-out at least?

facebook-github-bot pushed a commit that referenced this pull request May 24, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: Android Android applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Regression after 0.59: FlatList in inverted mode on Android doesn't invert pull-to-refresh gesture.
5 participants