FlatList does not seem to be working. I get this warning.
VirtualizedList: missing keys for items, make sure to specify a key property on each item or provide a custom keyExtractor.
Code:
<FlatList
data={[{name: 'a'}, {name: 'b'}]}
renderItem={
(item) => <Text key={Math.random().toString()}>{item.name}</Text>
}
key={Math.random().toString()} />