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

207
Views
undefined is not an object (evaluating 'post.profile_picture' )

so i have been getting this error a lot when working with arrays so i write an array in a seperated file but when i (export/import) and want to use it on another file (component ) it gives me this error , but if write the array inside the second file directly it works ??? i can keep REtyping that array but i want my code with no repetitions ! so what is the problem please code : THE ARRAY FILE :

const USERS =[
  {
      user: 'cleverqazi',
      image:'https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/kensingtonroyal-79486960-257028741946498-6632966373034557484-n-1593172690.jpg',
  },
  {
      user: 'hyrixlele',
      image :'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT227CvLOL-LPbvwX9G1Fr-SQsTTCdHiA-6Pw&usqp=CAU',
  },
  {
      user :'jackdone',
      image:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQlceGeHkpTiNVSv8bna9crjKxvlS38_ka-tw&usqp=CAU',
  },
  {
      user:'donetravitoleaon',
      image:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTdqteCJFZbpnYbaLhmdf9fv756Sc4PQJ6PfQ&usqp=CAU',
  },
  {
      user:'cristiano.ronaldo',
      image:'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQgDBFdFku800IEsJnhIB33SNN5UKZy2cnJaw&usqp=CAU',
  }
]

THE SECOND ONE :

       <ScrollView>
         {POSTS.map((post,index)=>(
             <Post post={post} key={index}/>
         ))}
       </ScrollView>
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!