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

172
Views
¿Cómo deshabilitar el desplazamiento dentro de una vista en particular?

Estoy tratando de hacer que ScrollView se desplace horizontalmente solo cuando deslizo una vista en particular algo como esto:

 <ScrollView horizontal={true}> <View style={styles.TopView}></View> <View style={styles.BottomView} Scrollable={false}></View> </ScrollView>

Estaba pensando en deshabilitar el desplazamiento OnPressIn usando ganchos como este:

 const [Scrollmove, setScrollmove] = useState(true); <ScrollView horizontal={true} scrollEnabled ={Scrollmove}> <View style={styles.TopView}></View> <Pressable onPressIn={()=>{setScrollmove(false)}} onPressOut={()=>{setScrollmove(true)}}> <View style={styles.BottomView}></View> </Pressable> </ScrollView>

pero no sé si funcionaría y hay una mejor manera de lograr el efecto deseado?

Nota : los segmentos de código que he escrito arriba son pseudocódigo

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

0

No puedes hacer eso. Sin embargo, puede cambiar su diseño, dividir su pantalla y la mitad puede desplazarse, la otra mitad puede quedarse.

 <View style={styles.TopView}> <Text>Stay</Text> </View> <ScrollView horizontal={true}> <View style={styles.BottomView} Scrollable={false}> <Text>Scrollable</Text> </View> </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!