I'm new to React Native and I'm following along with a tutorial. I'm using FlatList for rendering components. This is my component:
const HomeScreen = (props) => {
console.log("articles: ", props.articles);
return (
<View>
<FlatList
data={ props.articles }
renderItem={({item}) => <Text> {item.title}</Text>}
/>
</View>
);
}
In the tutorial, it is mentioned that if we don't use KeyExtarctor, the FlatList will throw this warning
VirtualizedList: missing keys for items, make sure to specify a key property on each item or provide a custom keyExtractor.
I don't see any warning like that. The tutorial is pretty old so I was wondering does this issue still persists with the latest version of React Native?