jfilter / react-native-onboarding-swiper

🛳 Delightful onboarding for your React-Native app

Home Page:https://www.npmjs.com/package/react-native-onboarding-swiper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript definitions for flatlistProps

zemiret opened this issue · comments

Hi.
I was trying to use flatlistProps to tweak some properties, but the typescript definition for the type is:

flatlistProps?: FlatListProps<Page> | undefined;

And FlatListProps type requires data and renderItem props.
I believe the type should be wrapped so that these fields are not required.
Technically I could provide data as I see that this is just pages, but renderItem is some private function and trying to supply it kind of defeats part of this library's purpose.