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

139
Views
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
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!