Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

154
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda