5

Basic description

I'm rendering an epub file in the webview and i want to the user can't be able to copy a text but i want to let him select the text for some reasons (Highlight and some stuff)

.

default tooptip :

This is what the default tooltip looks like

I just wanted to disable this default tooltip and don't show it after any selection .

I was searching and found i could stop user from selecting by using this 2 lines of code :

"-webkit-user-select": "none",
"user-select": "none",

but this is not what i wanted . i want to let the user select the text and don't let them copy it . .

Please Help Me Thanks

Community
  • 1
  • 1
Mahdi
  • 1,355
  • 1
  • 12
  • 28
  • 1
    Take a look at the following npm module: https://github.com/Astrocoders/react-native-selectable-text – Atef Aug 27 '19 at 07:57
  • 1
    @Atef I saw it but you can't make a customized box for it, you can just change the items name . – Mahdi Aug 27 '19 at 20:20

0 Answers0