The extraData prop is used to re-render the FlatList items dynamically . So what we are doing is that we make 2 Array in our tutorial and render the FlatList using first array object.
Read moreHow do you reload FlatList in react-native?
For quick and simple solution Try:
Read moreHow do you use FlatList in react-native class component?
React Native FlatList Component
Read moreHow 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
Read moreHow do you use FlatList in react-native example?
React Native FlatList Example
Read moreHow do you implement infinite scroll in React Native?
FlatList from React Native has built-in support for infinite scroll in a single direction (from the end of the list). You can add a prop onEndReached on FlatList . This function gets called when your scroll is near the end of the list, and thus you can append more items to the list from this function.
Read moreHow do you use FlatList with hooks in React Native?
import { Dimensions } from ‘react-native’;…
Read more