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

125
Views
React-Native FlatList White Screen doesn't load datas

I want to show this data in FlatList but it shows only whitescreen:

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'
        }
    ]);

This is the code i used :

            <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>
            }}
            />

Please give me a solution

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

0

Add return in your view

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!