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

Make HTML Text selectable

Open nikita-zot-1408 opened this issue 4 years ago • 4 comments

Is there any way with which we could make HTML text selectable? I digged documentation but could not find anything about this

nikita-zot-1408 avatar Aug 13 '21 07:08 nikita-zot-1408

i think i have same issue , anyone can help iam try

<HTMLView 
        value={data.content}
        stylesheet={GlobalStyle.HTMLStyleSheet}
        onLinkPress={(url) => handleLinkClicked(url)} // TODO: handle url pressed
        textComponentProps={{selectable:true}}
      />
  what wrong in code ?

hendradedis avatar Nov 04 '21 06:11 hendradedis

Hello! Any updates on this?

lalbuquerque avatar Feb 01 '22 19:02 lalbuquerque

Sorry to see selectable text is not yet supported. I came here exploring an alternative to ‘react-native-render-html’ for this very reason. The said plugin supports the ‘selectable:true’ option but it’s functionality is limited in iOS.

ansmlc avatar May 09 '22 00:05 ansmlc

@ansmlc Me too! Did you find the way to solve this problem eventually?

dongsuo avatar Aug 10 '23 15:08 dongsuo