Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
RecatNative - Object keys are shown when logged ,but when displaying in app,it shows undefined?

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 ! :)

this my firebase Realtime database

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 !

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!