Quantcast
Channel: Active questions tagged touchablewithoutfeedback - Stack Overflow
Viewing all articles
Browse latest Browse all 46

How to make text selection work when inside view and is inside TouchableWithoutFeedback in React Native in android

$
0
0

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?


Viewing all articles
Browse latest Browse all 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>