0
<FlatList
  data={[{y: 'a'}, {z: 'b'}]}
  renderItem={({item}) => <Text></Text>}
/>

here I'm using x and y as timestamp and I need to get this timestamp and the timestamp value.

anon
  • 855
  • 12
  • 22
Alina Joy
  • 11
  • 2
  • It would be enough to read documentation. The thing you are asking is very basic stuff. http://facebook.github.io/react-native/docs/flatlist.html Briefly: } <---- You have all data about your objects in `item` variable. That's the point. /> – Slowyn Nov 08 '17 at 09:22
  • So using different keys is not possible? – AH. Nov 08 '17 at 09:25

0 Answers0