React-native: Option to display custom context menu on <Text /> and <WebView />

Created on 3 May 2018  Â·  8Comments  Â·  Source: facebook/react-native

Expected Behavior

On holding a content of <Text selectable /> and <WebView /> a context menu appears. We should be able to over ride the context menu with a custom view and do custom actions on them with each action triggering a event / function with selected text as argument.

Actual Behaviour

Currently android's default behaviour shows up and there are only default options like copy, paste and web search.

References

WebView Ran Commands Locked

Most helpful comment

It's possible to display custom context menu with this project: https://github.com/Astrocoders/react-native-selectable-text

All 8 comments


Thanks for posting this! It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out?

If you believe your issue contains all the relevant information, let us know in order to have a maintainer remove the No Template label. Thank you for your contributions.

How to Contribute • What to Expect from Maintainers

This issue was marked as lacking information required by the issue template. There has been no activity on this issue for a while, so I will go ahead and close it.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

If you are the author of this issue and you believe this issue was closed in error (i.e. you have edited your issue to ensure it meets the template requirements), please let us know.

@GaudamThiyagarajan I am also facing the same scenario. Did you find out any solution?

@Balasnest there is no solution as of yet I guess !

please reopen this.
I actually need this feature.

I need this too, please reopen.

Hey all - thanks for bumping!

This issue was closed because it is not properly submitted (as the bot text outlines)

For webview please open an issue in react-native-webview

For a feature request to the core Text module please file an issue in discussions and proposals

It's possible to display custom context menu with this project: https://github.com/Astrocoders/react-native-selectable-text

Was this page helpful?
0 / 5 - 0 ratings