Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
Scroll parent when child scroll is at end/top

I have a ScrollView (let's call it parent) which is nesting multiple ScrollViews (let's call them childs). When the child finishes scrolling I want to start scrolling the parent when the user continues to scroll over the child.

I've searched in another answers but I couldn't find any information related to this situation. Can anyone help?

Thanks!

Code until now:

return (

    <View style={{ flex: 1 }}>
      <ScrollView style={{ flex: 1, backgroundColor: "white" }}>

        <View style={styles.dummyView1}>
          <ScrollView style={styles.scrollView}>
             SOME LONG TEXT
          </ScrollView>
        </View>



        <View style={styles.dummyView2}>
          <ScrollView style={styles.scrollView}>
           SOME LONG TEXT
          </ScrollView>
        </View>

        <View style={styles.dummyView3}>
          <ScrollView style={styles.scrollView}>
             SOME LONG TEXT
          </ScrollView>
        </View>

        <StatusBar style="auto" />
      </ScrollView>
    </View>
  );
}

const styles = StyleSheet.create({

  scrollView: {
    margin: 10,
    backgroundColor: "#FF5733",
  },

  dummyView1: {
    height: 300,
    backgroundColor: "#3352FF",
  },
  dummyView2: {
    height: 300,
    backgroundColor: "coral",
  },
  dummyView3: {
    height: 300,
    backgroundColor: "#61FF33",
  }
})
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda