Generic ListItem in React Native using TypeScript
When using React Native, lists are created using the FlatList component. A FlatList is constructed using one or more repeatable list items, one item per row. In this blog I’ll demonstrate how TypeScript can help to create FlatLists with generic list items.
This is a technique where we can reduce boilerplate, but still have readable and customisable FlatLists.
Let’s dive right into the basics of a FlatList by creating a list of StarWars characters.Read more →