I am having the array of data which is rendered using map in React Native.But the component is rendering the data twice throwing the exception
Warning: Each child in a list should have a unique "key" prop.
Here is my code.
const test = ["Test1","Test2","Test3" ]
<View>
{test.map(item=><Text>{item}</Text> )}
</View>