I have an array which stores data according to date, how can I render the data on a particular date?
I tried to use array[0].Data and it works, but what I really want to achieve is something like passing a prop "array(Jul)" and it shows the data in Jul. Is there a way to achieve this?
let array = [{Month: "Jul", Data: "this is my data", Place: "UK"},{Month: "Aug", Data: "this is my data2", Place: "USA"}]
<View >
<Text small bold white> {array(Jul).Data} </Text>
</View>