Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept generic type in Animated.FlatList (software-mansion#2862)
## Description Reanimated exposes animated `FlatList` component under `Animated` namespace, but using it in a real world scenario is a bit cumbersome, since it doesn't accept a type parameter that is used to describe list items. Fixes software-mansion#2858 ## Changes - Updated type for `Animated.FlatList` - Added additional type test for `Animated.FlatList` ## Screenshots / GIFs ### Before <img width="823" alt="image" src="https://user-images.githubusercontent.com/6288237/150246605-620b768b-eefa-44b5-8ff5-8e9a1fd5dd27.png"> ### After <img width="573" alt="image" src="https://user-images.githubusercontent.com/6288237/150246662-d196bf29-2089-4f4d-887a-58416e624f88.png"> ## Checklist - [ ] Included code example that can be used to test this change - [X] Updated TS types - [X] Added TS types tests - [ ] Added unit / integration tests - [ ] Updated documentation - [ ] Ensured that CI passes
- Loading branch information