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

209
Visualizações
React Native ScrollView Touchable Area is Smaller than the scrollview container

My react-native scrollview container is only touchable in about the top 30% of it. Normally in a scroll view you can scroll from anywhere in the entire ScrollView container but mine only recognizes scrolling touches at the top.

I created a scrollview in react-native that renders a list of pressable text containers inside of it.

Why is my touch target area in my scrollview so small?

P.S I have tried most combinations of passing style={{flex: 1}}} down from parents.

Here is the code and styling I am using...

<View style={styles.pickerContainer}>
                  <ScrollView style={styles.timeIntervalScrollView}>
                    {minuteTimeIntervals.map(timeInterval => {
                      return (
                        <Pressable
                          onPress={() => handleChange(timeInterval, "minute")}
                          style={styles.timeInterval}>
                          <Text style={styles.inputText}>{timeInterval}</Text>
                        </Pressable>
                      );
                    })}
                  </ScrollView>
                </View>
const styles = StyleSheet.create({
  pickerContainer: {
    height: 250 * size,
    width: 128 * size,
    borderWidth: 1,
    borderColor: "#ECE9E9",
  },
  timeInterval: {marginTop: 24 * size},
  inputText: {
    textAlign: "center",
    ...Fonts.xsmall,
    ...Fonts.blackGreen,
    borderWidth: 1,
  },
  timeIntervalScrollView: {
    backgroundColor: "white",
    borderWidth: 1,
    borderColor: "blue",
    width: "100%",
    height: "100%",
  },
});

This is what the scrollview component visually looks like...The Red Dashed box represents the only touchable area that lets me scroll

enter image description here

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