callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
12.37k stars 2.04k forks source link

[Text] selectable does not work on android #4411

Open ddeath opened 2 weeks ago

ddeath commented 2 weeks ago

Current behaviour

[Text] selectable does not work on android. I should be able to press and hold to select text, instead nothing happens

Expected behaviour

I should be able to press and hold to select text

How to reproduce?

Add: <Text selectable={true}>Testing</Text>

and try to select text on android.

Preview

What have you tried so far?

I tried to use Text from react-native instead and selection works there.

Your Environment

software version
ios x
android 15
react-native 0.74.1
react-native-paper 5.12.3
node x.x.x
npm or yarn x.x.x
expo sdk 51.0.4
seb-zabielski commented 1 week ago

Hey @ddeath

I have not been able to reproduce it.

Can you provide more details:

  1. Do you have a custom theme provided?
  2. Is the text inside another component (such as FlatList)?
  3. Were you able to reproduce it on another device/emulator?