I know there is a million questions already on this topic, but either they don't work or they are not useful. I know you are supposed to put the key on the most outer View (parent), but I did that and it continues to give me this error.
I tried putting the key into the parent view in component that render {username()}, but again it still gives me the same error. Any thought?
CODE
const username = () => {
return user.map((user) => {
return (
<View key={user.key}
style={{padding: 1}}>
<Text
style = {{
fontSize: 24,
marginTop: 0,
shadowOffset: {width: 1, height: 6},
shadowRadius: 4,
shadowOpacity: 0.2,
}}>
{user.username}
</Text>
</View>
);
});
};