jsdf / react-native-htmlview

A React Native component which renders HTML content as native views
ISC License
2.7k stars 466 forks source link

Make HTML Text selectable #332

Open nikita-zot-1408 opened 2 years ago

nikita-zot-1408 commented 2 years ago

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

hendradedis commented 2 years ago

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 ?
lalbuquerque commented 2 years ago

Hello! Any updates on this?

ansmlc commented 2 years ago

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.

dongsuo commented 11 months ago

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