react-native-marked icon indicating copy to clipboard operation
react-native-marked copied to clipboard

make `selectable` optional for Text elements

Open dciccale opened this issue 7 months ago • 1 comments

the selectable property was included on all texts as per this pr https://github.com/gmsgowtham/react-native-marked/pull/314

however it is always set to true. would be useful to have an option to toggle that.

on my app i have built a custom context menu on long press for markdowned content, and on iOS particularly the "Copy" popover/tooltip appears as well as my context menu which already includes a "Copy" action item.

Currently unless I create a custom renderer that remaps all text types like paragraph, headers, etc, without selection there's no way to turn it off. That's why for now what I do is iterate on the generated list of elements, and clone any Text element without this prop and return the new tree.

dciccale avatar Aug 08 '25 09:08 dciccale

will check it over the weekend

gmsgowtham avatar Aug 13 '25 13:08 gmsgowtham