How do i loop through this array and display the key ("ETH_SAN", "ETH_LINK") into components?
{
ETH_SAN:
{ last: '0.000981',
high: '0.0010763',
low: '0.0009777',
lowestAsk: '0.00098151',
highestBid: '0.0007853',
percentChange: '-1.83619353',
baseVolume: '7.3922603247161',
quoteVolume: '7462.998433' },
ETH_LINK:
{ last: '0.001',
high: '0.0014',
low: '0.001',
lowestAsk: '0.002',
highestBid: '0.001',
percentChange: '-28.57142857',
baseVolume: '13.651606265667369466',
quoteVolume: '9765.891979953083752189' }
// all possible markets follow ...
}
So it prints out this:
<Text>ETH_SAN</Text>
<Text>ETH_LINK</Text>
Object.keys('yourObjectName').map((key) => <Text>{key}</Text>)?Mikhail Katrinis with the same solution and he saw this just like me and took time to write the code. Could you accept his answer? Thanks!