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
La pantalla blanca React-Native FlatList no carga datos

Quiero mostrar estos datos en FlatList pero solo muestra pantalla blanca:

 const [datas,setDatas] = useState([ { name:'dhinesh', phone:'9888888888', email:'asdasd@gmail.com', salary:'50000', position:'ww' }, { name:'ramesh', phone:'93388888', email:'jhjj@gmail.com', salary:'90000', position:'sw' } ]);

Este es el código que usé:

 <FlatList data={datas} keyExtractor={(item, index) => index.toString()} renderItem={({item}) => { <View> <Text>{item.name}</Text> <Text>{item.phone}</Text> <Text>{item.email}</Text> <Text>{item.salary}</Text> <Text>{item.position}</Text> </View> }} />

Por favor, dame una solución

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Añadir return en su vista

 renderItem={({item}) => { return ( <View> <Text>{item.name}</Text> <Text>{item.phone}</Text> <Text>{item.email}</Text> <Text>{item.salary}</Text> <Text>{item.position}</Text> </View> ) }}
about 4 years ago · Juan Pablo Isaza Report
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!