recyclerlistview icon indicating copy to clipboard operation
recyclerlistview copied to clipboard

Prop types error with valid `externalScrollView`

Open grifotv opened this issue 5 years ago • 4 comments
trafficstars

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

grifotv avatar Aug 19 '20 23:08 grifotv

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?

lelukas avatar Jul 12 '21 18:07 lelukas

happend to me

RN: 0.64.2 recyclerlistview: 3.0.0

Dylan0916 avatar Sep 03 '21 04:09 Dylan0916

For now I'm just ignoring with:

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

bfricka avatar Jul 07 '22 19:07 bfricka