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

456
Views
How to avoid element height shift in ScrollView (React Native) when element changes size?

I am using a classical React Native ScrollView and my elements can change size on some user defined interaction. The element changes size because some new information is added on the top of the element (see pseudo-code below).

<View>
   {condition && (<View> Additional Info </View>)}
   <View> Original Element </View>
</View>

When this happens, I want to keep the Original Element to keep its position on the user's screen. However, and logically, the Original Element is visually shifted downwards because of the size change.

One solution that I could think of would be to manually scroll the view downwards as the additional info appears but it seems like a hack and I'm not confident about the visual rendering.

Can someone think of a better way to do this ?

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!