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

140
Visualizações
How to make text selection work when inside view and is inside TouchableWithoutFeedback in React Native in android

I have a situation where I have a post, post has content in it, when user clicks on post's content on the home user should be redirected to another page and user is also able to select the text on the same Home Screen.

I have tried doing this

<TouchableWithoutFeedback
    accessibilityRole="text"
    onPress={navigateToSomeScreen}
    onLongPress={() => { return null}}
>
    <View
        accessibilityRole="text"
    >
        <Text
            selectable
        >
            enter code here
        </Text>
    </View>
</TouchableWithoutFeedback>

But still its not working. When long press on the text nothing happens. I works on iOS but it's not working properly on android.

Any suggestions or any advices how can achieve it?

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