react-native-web-refresh-control
react-native-web-refresh-control copied to clipboard
Aggressive patchFlatListProps
When props.refreshing is undefined refreshControl shouldn't be be injected.
Right now patchFlatListProps changes the behavior of FlatLists which aren't supposed to have a refreshControl. It also causes some type warnings to be thrown in development.
https://snack.expo.dev/wcIw8L47u
Also breaks horizontal FlatLists https://snack.expo.dev/x_4Fv3WDC
You're right. I will fix it ASAP. It should only inject when onRefresh is defined, as per the FlatList docs