React-Native: FlatList onRefresh not called on pull up.

Issue with React-Native. FlatList does not seem to detect onRefresh when nested inside ScrollView: Issue ticket: https://github.com/facebook/react-native/issues/14756


I have faced this issue. sometimes IDE picks wrong Flatlist component in auto complete code. IDE consider react-native-gesture-handler of Flatlist. react-native-gesture-handler of Flatlist is not supported onRefresh. react-native of Flatlist only support the onRefresh.

So Need to change react-native of Flatlist component.


Commenting since this ranked high on google bing for my search.

In my case there was an automatic import of another FlatList that didn't behave exactly as I wanted (it didn't seem to have an "onRefresh"):

import { FlatList } from 'react-native-gesture-handler';

What I really wanted:

import { FlatList } from 'react-native';

Now for investigating why we have this dependency. ;)