i want to display the keys of the object(size)..each size object have various keys ..so i tried to iterate keys using Object.keys()..but it didn't gave me the answer i thought,so help to rectify it .
Thanks In Advance ! :)

when i run this code -
{console.log(postDetail['sizes'])}
it shows like these in prompt:

But when i try to display the keys in the App(the below code) -
{console.log(postDetail['sizes'])}
<View style={{ flexDirection: 'row', flexWrap: 'wrap' }}>
{
Object.keys(postDetail['sizes']).map((item) => {
return <View>
<Text style={{ color: 'black', fontWeight: 'normal', }}>{item}</Text>
</View>
})
}
</View>
it show undefined like these

help me to display object keys in the App !