react-native-selectable-text icon indicating copy to clipboard operation
react-native-selectable-text copied to clipboard

Option for adding React component in menuitem pops while selecting text.

Open shivam2562001 opened this issue 2 years ago • 7 comments

is there any way to do that in current version or if not How can I proceed to add this feature ?

shivam2562001 avatar Feb 18 '23 07:02 shivam2562001

image

Above image shows I have used selectableText and passed menuitems there.

so I tried to edit RNSELECTABLETEXT.JAVA in package where I have written my logic in only onPreparationActiomode in registerSelectionListener function for implementing option of menu with circle view menuitem containing colors in it. but it's not working like this : Screenshot (558)

output: Screenshot (557)

am I missing something pls help !!!

I need to make like this for just showing color in view as menuitem currently it showing text only. Uoxvl

shivam2562001 avatar Feb 19 '23 05:02 shivam2562001

@AlenToma pls take a look I really need help in this. provide me some suggestion.

shivam2562001 avatar Feb 19 '23 05:02 shivam2562001

Frieand I am really not the auther of this lib and I really dont know to much native code to help you with this. But I developed another version of context menu there you can custom add anything you like, even add images.

Have alook here https://github.com/AlenToma/react-native-text-contextmenu

AlenToma avatar Feb 19 '23 06:02 AlenToma

[image: Screenshot (560).png]

I am getting this error while installing your repo. I think their is issue in your github repo due to which you pushed recently. can you pls take a look bro ?

On Sun, Feb 19, 2023 at 11:43 AM Alen Toma @.***> wrote:

Frieand I am really not the auther of this lib and I really dont know to much native code to help you with this. But I developed another version of context menu there you can custom add anything you like, even add images.

Have alook here https://github.com/AlenToma/react-native-text-contextmenu

— Reply to this email directly, view it on GitHub https://github.com/AlenToma/react-native-selectable-text/issues/16#issuecomment-1435903671, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVYWIEHTRUBQ2BQ6BFHONLWYG2YBANCNFSM6AAAAAAVAGKV7I . You are receiving this because you authored the thread.Message ID: @.***>

shivam2562001 avatar Feb 19 '23 06:02 shivam2562001

install via npm npm install react-native-webview react-native-text-contextmenu

AlenToma avatar Feb 19 '23 06:02 AlenToma

[image: image.png] I did the same see.

On Sun, Feb 19, 2023 at 11:55 AM Alen Toma @.***> wrote:

install via npm npm install react-native-webview react-native-text-contextmenu

— Reply to this email directly, view it on GitHub https://github.com/AlenToma/react-native-selectable-text/issues/16#issuecomment-1435905090, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVYWICV4MPWCJZD4YXTQMDWYG4FPANCNFSM6AAAAAAVAGKV7I . You are receiving this because you authored the thread.Message ID: @.***>

shivam2562001 avatar Feb 19 '23 06:02 shivam2562001

bro pls help how can I run this package ?

On Sun, Feb 19, 2023 at 11:56 AM Shivam Singh @.***> wrote:

[image: image.png] I did the same see.

On Sun, Feb 19, 2023 at 11:55 AM Alen Toma @.***> wrote:

install via npm npm install react-native-webview react-native-text-contextmenu

— Reply to this email directly, view it on GitHub https://github.com/AlenToma/react-native-selectable-text/issues/16#issuecomment-1435905090, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVYWICV4MPWCJZD4YXTQMDWYG4FPANCNFSM6AAAAAAVAGKV7I . You are receiving this because you authored the thread.Message ID: @.***>

shivam2562001 avatar Feb 19 '23 06:02 shivam2562001