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

112
Views
How to load a ScrollView from the bottom

I have the following ScrollView. I would like it to initially load content from the bottom, showing the last elements first so that you first scroll from bottom upwards :

<ScrollView
  vertical
  showsVerticalScrollIndicator={false}
  showsHorizontalScrollIndicator={false}>
  {chatMsgs.map(ChatMsg => (
    <ChatMsg key={Math.random()} />
  ))}
</ScrollView>  

How can I go about implementing this scenario?

I have tried display: 'flex', flexDirection: 'column', alignItems: 'flex-end', but to no success. I did not expect it to work anyway.

Thank you all in advance.

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

0

You can use contentOffset props and set arbitrary y value.

 <ScrollView
  vertical
  showsVerticalScrollIndicator={false}
  showsHorizontalScrollIndicator={false}
  contentOffset={{x: 0, y: 9999}} />
  ))}>
  {chatMsgs.map(ChatMsg => (
    <ChatMsg key={Math.random()} />
  ))}
</ScrollView> 
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!