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

123
Views
Cómo mapear objetos anidados en React Native Flatlist

Había intentado esto durante todo el día y espero poder solucionarlo ahora.

Estoy tratando de obtener el nombre y el valor.

ejemplo - Marca de Auto - Otras Marcas, Año - 2021, Combustible - Diesel

prueba este código pero vacío

 <FlatList data={Object.keys(data)} renderItem={({ item }) => ( <> <Text>{item.s_name}</Text> <Text>{item.values.s_name}</Text> </> )} />

TypeError: no se pueden leer las propiedades de undefined (leyendo 's_name')

Respuesta api del servidor

 { "1": { "pk_i_id": "12368", "fk_i_attribute_id": "1", "fk_i_item_id": "60730", "s_name": "Car Make", "locales": { "en_US": "Car Make" }, "values": { "355": { "pk_i_id": "355", "s_value": null, "s_name": "Others Brands", "locales": { "en_US": "Others Brands" }, "hierarchy": { "355": { "pk_i_id": "355", "s_name": "Others Brands", "locales": { "en_US": "Others Brands" } } } } } },
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!