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

171
Visualizações
How to snap to the adjacent view no matter how hard you scroll in react native?

I made a Scroll View like this:

<ScrollView horizontal={true} snapToInterval={ScreenWidth} decelerationRate="fast" snapToAlignment={"center"}>
  <View style={{width:Screen}}>...</View>
  <View style={{width:Screen}}>...</View>
  <View style={{width:Screen}}>...</View>
</ScrollView>

but if I scroll/swipe it too fast this happens (it directly goes to the last View)
but I want this to happen no matter how fast they swipe (it goes only to the adjacent View)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I solved it

all I had to do was use disableIntervalMomentum={true}

<ScrollView horizontal={true} snapToInterval={ScreenWidth} decelerationRate="fast" disableIntervalMomentum={true}>
  <View style={{width:Screen}}>...</View>
  <View style={{width:Screen}}>...</View>
  <View style={{width:Screen}}>...</View>
</ScrollView>
about 4 years ago · Juan Pablo Isaza Relatório
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