You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Click and hold to select text using a text component #13938
I want click-and-hold-to-select-text using a Text component and then i searched it and i found selectable property.It good works but it copy the entire text field.I want to selecting a subset of the text field for copying.Actually this question is asked on stackoverflow .Here is question on stackoverflow:http://stackoverflow.com/a/37119619/4596143
This full of text ("text description") can copy not partially .I want to it like screenshot
Actual behaviour:
Expected behavior:
Solution
They are said that RN 0.39 adds support to copy the entire text field, but does not yet include support for selecting a subset of the text field for copying on stackoverflow .I wonder Text component include support for selecting a subset of the text field for copying on new versions for react native.If the property does not exist on new versions ,will the property for text integrate ?
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
For me, both platforms are existing different problems :
In IOS, adding selectable={true} or selectable is not working for selecting partially text
In Android: adding selectable={true} or selectable is working but the nested image in text is disappeared for SOME devices
Environment: React Native v0.51
I really need this feature... I'm on 0.52 v and I only can see "Copy" but not the expected behavior as it is said. Someone knows if there is a way to do so?
@pausabe If you really want this and you dont have complex nested component in Text component. Just using TextInput instead of Text and pass editable={false} as the prop and set the padding and margin as 0. The behavior is just same as Text but selectable. Hope this help.
Thanks @tikkichan4! I've tried this in a simple text with the editable={false} but the text is not selectable...
Besides, I need this for complex nested Text so I image that this is not the way I should do it.
I hope Text component becomes more completed with this feature some day!
Reacted by devurbandictionary, fenglu09, Brian Webb, Mehdi Jarraya, Steven Masini, Volodymyr Kozieiev, yanyixin, Jeff Sweeney, abadillaml, Spencer Greene and 28 more
What should we make of this? 9+ years. A fair point would be that if 'we' all want it so much, 'we' should code it up. But solutions have been made, yet no real progress has been done.
Doesn't anyone find this strange? These long issues (e.g., the Gnome file picker thumbnail fiasco) are so universally wanted and objectively needed but remain frozen for decades.
I think a new field of open source anthropology should start; I suspect there is more here than meets the eye.
Activity
hramos commentedon Jul 20, 2017
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
ArsenyYankovsky commentedon Nov 11, 2017
This is still reproducible with
"react-native": "0.49.0"ArsenyYankovsky commentedon Dec 7, 2017
@hramos Could you please reopen that?
kasiselvamk commentedon Jan 15, 2018
Adding selectable={true} or selectable is not working.
v 0.51-RC
tikkichan4 commentedon Jan 29, 2018
For me, both platforms are existing different problems :
In IOS, adding selectable={true} or selectable is not working for selecting partially text
In Android: adding selectable={true} or selectable is working but the nested image in text is disappeared for SOME devices
Environment: React Native v0.51
pausabe commentedon Feb 5, 2018
I really need this feature... I'm on 0.52 v and I only can see "Copy" but not the expected behavior as it is said. Someone knows if there is a way to do so?
tikkichan4 commentedon Feb 9, 2018
@pausabe If you really want this and you dont have complex nested component in Text component. Just using TextInput instead of Text and pass editable={false} as the prop and set the padding and margin as 0. The behavior is just same as Text but selectable. Hope this help.
pausabe commentedon Feb 12, 2018
Thanks @tikkichan4! I've tried this in a simple text with the editable={false} but the text is not selectable...
Besides, I need this for complex nested Text so I image that this is not the way I should do it.
I hope Text component becomes more completed with this feature some day!
michchan commentedon Mar 20, 2018
I think this feature is necessary.
fenglu09 commentedon Apr 20, 2018
+1
44 remaining items
react-native-bot commentedon May 22, 2025
This issue was closed because it has been stalled for 7 days with no activity.
lsarni commentedon May 22, 2025
The issue isn't resolved
ashutoshup99 commentedon Jul 22, 2025
Is there any solution for this till now ?
colaquecez commentedon Oct 5, 2025
I created that lib for android: https://github.com/colaquecez/expo-selectable-text, but I need to spend more time on it to make it better.
react-native-bot commentedon Apr 3, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
CanRau commentedon Apr 4, 2026
Please don't close
elstgav commentedon Apr 13, 2026
This is still an issue: #55187 - Text prop selectable not working since upgrade on iOS 26
aretrace commentedon Apr 20, 2026
What should we make of this? 9+ years. A fair point would be that if 'we' all want it so much, 'we' should code it up. But solutions have been made, yet no real progress has been done.
Doesn't anyone find this strange? These long issues (e.g., the Gnome file picker thumbnail fiasco) are so universally wanted and objectively needed but remain frozen for decades.
I think a new field of open source anthropology should start; I suspect there is more here than meets the eye.
raajnadar commentedon Sep 6, 2026
I tried to solve #58363. Can someone look into it?