Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript definitions for flatlistProps #113

Open
zemiret opened this issue Aug 27, 2021 · 1 comment
Open

Typescript definitions for flatlistProps #113

zemiret opened this issue Aug 27, 2021 · 1 comment

Comments

@zemiret
Copy link

zemiret commented Aug 27, 2021

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.

@jfilter
Copy link
Owner

jfilter commented Jan 31, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants