How do you write FlatList in react-native?

flatlist-simple By passing extraData={selectedId} to FlatList we make sure FlatList itself will re-render when the state changes. Without setting this prop, FlatList would not know it needs to re-render any items because it is a PureComponent and the prop comparison will not show any changes.19 Oca 2022

Sizin İçin Seçtik  What is the use of FlatList in react native?

Leave a Reply

Your email address will not be published. Required fields are marked *