Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda