Skip to content

fix: improve listViewProps typing with Partial<FlatListProps>#2628

Merged
kesha-antonov merged 1 commit into
FaridSafi:masterfrom
yhl0519:fix/listViewProps-flatlist-compatible
Jul 16, 2025
Merged

fix: improve listViewProps typing with Partial<FlatListProps>#2628
kesha-antonov merged 1 commit into
FaridSafi:masterfrom
yhl0519:fix/listViewProps-flatlist-compatible

Conversation

@yhl0519
Copy link
Copy Markdown
Contributor

@yhl0519 yhl0519 commented May 30, 2025

Improves the type of listViewProps to allow safely passing any FlatList-compatible props.

Previously, listViewProps was typed as { onLayout } & object, which caused TypeScript errors when passing valid props like:

  • style
  • onScroll
  • onEndReached
  • ...

@kesha-antonov kesha-antonov merged commit 6432c54 into FaridSafi:master Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants