-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[HELP] FlatList inverted={true} should have an onTopReached callback #15820
Comments
check how this is done: https://github.com/expo/react-native-invertible-scroll-view |
@hramos Can we have more infos about this ? React-native-invertible-scroll-view doesn't seem to be compatible with FlatList. I also think we should have an event for top reached using inverted FlatList. |
I don't know what I'm missing here but |
my issue is semi-related... i have an inverted FlatList for a texting app who's UI is identical to the iOS Messages app (an inverted list where the user pulls down to load more messages) pull DOWN to refresh (with ActivityIndicator at the top) does not work when the FlatList is inverted, instead, it behaves like this: pull UP to refresh (with Activity Indicator at the bottom) ... literal vs intuitive: when taken "literally", i can agree that this is expected behavior since it is after all "inverted" ... however, when taken "intuitively", it's not so expected this default is non-intuitive to users and is preventing me from being able to load more chat messages in the same manner that the iOS Messages app does it, where the user pulls DOWN to refresh and the ActivityIndicator appears at the top does anyone know how to override this default? |
So will there be a React-Native 0.52.0 |
https://github.com/expo/react-native-invertible-scroll-view could work, but it is based on |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
: 0.47node -v
: 6.11.1npm -v
: 3.10.10Then, specify:
Expected Behavior
If I have a FlatList with the prop inverted={true} I want the callback onEndReached to be dispached when the user reaches the top of the items.
Actual Behavior
There is no way to get a callback when the user reaches the top of an Inverted FlatList. Its should be a callback for this just like the onEndReached.
The text was updated successfully, but these errors were encountered: