-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click and hold to select text using a text component on iOS #22458
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write |
Just to note, there are other menu actions like "Speak" and "Define" which appear after selecting text which hopefully can be supported (probably would come out-of-the-box if this issue is addressed). |
You can use this https://github.com/Astrocoders/react-native-selectable-text/ import { SelectableText } from "react-native-selectable-text";
// Use normally, it is a drop-in replacement for react-native/Text
<SelectableText
menuItems={["Foo", "Bar"]}
onSelection={({ eventType, content, selectionStart, selectionEnd }) => {}}
value="I crave star damage"
/>; it is for extracting and changing the selection menu but we implemented a way for you to select a subset of it |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Environment
Description
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/4596143Reproduction Steps and Sample Code
I try this code block:
This full of text ("text description") can copy not partially .I want to it like screenshot
Actual behaviour:
Expected behavior:
Reproducible Demo
I don't have a reproducible demo but should be pretty easy to create one.
I'm creating this because #13938 was closed but it's still an issue for a lot of people. Would be really nice if bot reopened closed issues if there's an activity on them because there's a lot of them.
The text was updated successfully, but these errors were encountered: