When you have a component that has an array of children, each of which can have its own children, not only children of a higher level, but also each child at a deeper level, needs its own key.
Performance issue
const Items = ({items}) => (
<View style={{flex: 1, paddingTop: 10}}>
{items.map((item, i) => {
return (<View>
<Text style={styles.item} key={i}>• {item} - {store.counter}</Text>
<Button onPress={() => store.increment()} title="+1" color="#50EB5D" key={uuid()} />
</View>
)})
}
</View>
)
, Text Button , View .
React , . , . View, Text Button , , , , , , , .
.