question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FlatList refresh bug

See original GitHub issue

Is this a bug report?

Yes.

Have you read the Bugs section of the Contributing to React Native Guide?

Yes.

Environment

react-native -v: 0.43.4 node -v: 7.7.4 npm -v: 4.1.2 yarn --version: 0.22.0

Then, specify:

Target Platform (e.g. iOS, Android): iOS Development Operating System: macOS Sierra Build tools : Xcode

Description

The first press is invalid after refreshing, See the demo for details.

Reproducible Demo

https://snack.expo.io/Hyd4CAlEb

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
eladgelcommented, Aug 1, 2017
react-native -v: 0.46.4
node -v: 6.9.2
npm -v: 3.10.9
yarn --version: 0.27.5

Then, specify:

Target Platform (e.g. iOS, Android): iOS Development Operating System: macOS Sierra Build tools : Xcode

Happens also with ScrollView and ListView notice that the touchable element becomes untappable when you scroll and reach the end of the scrolling component(ListView/ScrollView/FlatList)

https://github.com/facebook/react-native/commit/23c2a6cf1ae297182a62d1a8143b55b186f5e1b7 is supposed to fix this, waiting for RN 0.47 then 😦

—update 8/1/2017 tested 0.47 rc 5 the following code is implemented in both

ReactNativeStack-dev &  ReactNativeStack-prod

function accumulateDispatches(inst, ignoredDirection, event) {
    if (inst && event && event.dispatchConfig.registrationName) {
        var registrationName = event.dispatchConfig.registrationName, listener = getListener(inst, registrationName);
        listener && (event._dispatchListeners = accumulateInto_1(event._dispatchListeners, listener),
        event._dispatchInstances = accumulateInto_1(event._dispatchInstances, inst));
    }
}

This does not fix the problem

3reactions
fallennercommented, Jan 23, 2018

it’s still happening I am using 0.52 android

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native FlatList refreshing not working - Stack Overflow
i got an problem with the refreshing on pull function. The FlatList renders fine, but pull to refresh is not working.
Read more >
react-native-refresh-flatlist - npm package - Snyk
An important project maintenance signal to consider for react-native-refresh-flatlist is that it hasn't seen any new versions released to npm in the past...
Read more >
Flatlist bug with react navigation 3 - Expo Snack
createAppContainer, FlatList } from. 'react-navigation';. const data = new Array(30).fill(0); ... refreshing: false. } renderItem = ({ index }) => {. return (....
Read more >
FlatList - React Native
A performant interface for rendering basic, flat lists, supporting the most handy features:
Read more >
React Native Reanimated 2 - Collapsing Header + FlatList Tips
The Problem While I have successfully managed to make it work on iOS, ... if you have a pull to refresh feature on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found