keyExtractor prop in a FlatList component?The keyExtractor prop tells FlatList how to uniquely identify each item. This helps React Native optimize rendering by tracking items efficiently.
extraData prop in FlatList when your list depends on external state?The extraData prop tells FlatList to watch for changes in external data and re-render the list accordingly.
renderItem prop of FlatList?renderItem={({ item }) => <Text>{item.name}</Text>}Passing inline functions creates a new function on every render, causing FlatList to think items changed and re-render them all.
getItemLayout prop improve FlatList performance?Providing getItemLayout lets FlatList know each item's size and position, so it can quickly scroll to items without measuring them dynamically.
Using useFocusEffect allows you to save the scroll position when leaving and restore it when returning, preventing full re-renders and improving user experience.
