Flipkart / recyclerlistview

High performance listview for React Native and web!
Apache License 2.0
5.24k stars 430 forks source link

Prop types error with valid `externalScrollView` #536

Open grifotv opened 4 years ago

grifotv commented 4 years ago

Is there a way to pass externalScrollView prop with ScrollView from React Native Gesture Handler without having propTypes+TypeScript errors?

The code below works fine:

import { ScrollView } from 'react-native-gesture-handler';
<RecyclerListView
  layoutProvider={layoutProvider}
  dataProvider={dataProvider}
  rowRenderer={rowRenderer}
  externalScrollView={ScrollView}
/>

However, I get this prop types error:

Screenshot 2020-08-20 at 00 52 39
lelukas commented 3 years ago

I was using ScrollView from react-native and I also got type errors. Did you find a way to get rid of at least the type errors?

Dylan0916 commented 3 years ago

happend to me

RN: 0.64.2 recyclerlistview: 3.0.0

bfricka commented 2 years ago

For now I'm just ignoring with:

if (__DEV__) {
  LogBox.ignoreLogs(['Failed prop type: Invalid prop `externalScrollView`'])
}