Generic ListItem in React Native using TypeScript
Xebia
NOVEMBER 10, 2021
In this blog I’ll demonstrate how TypeScript can help to create FlatLists with generic list items. Also a TouchableOpacity is created to make each Item clickable, which is redundant. By making a FlatList abstraction with a generic renderItem , we remove these redundant parts and create a more efficient component.
Let's personalize your content