Giter Site home page Giter Site logo

Comments (5)

rajaishwary avatar rajaishwary commented on July 19, 2024 1

@goshakkk , @bhaumikdesai91 Any update on this ?

from react-native-tooltip.

goshacmd avatar goshacmd commented on July 19, 2024

I have a similar use case. I'm basically requiring the NativeModule for react-native-tooltip and use it without touchable opacity (otherwise, the webview won't be handling selections at all).

from react-native-tooltip.

bhaumikdesai91 avatar bhaumikdesai91 commented on July 19, 2024

@goshakkk have you found any workarounds for this?

from react-native-tooltip.

goshacmd avatar goshacmd commented on July 19, 2024

@bhaumikdesai91 I copied https://raw.githubusercontent.com/chirag04/react-native-tooltip/master/ToolTip.ios.js locally and removed touchable opacity and such, AND I'm setting the height of Tooltip explicitly.

What really hurts me is that there's no easy way to disable system actions in the UIMenuController for a web view... the alternative would be subclassing UIWevView and making a custom bridge but I sooo don't want to go down that road :( Sucks that canPerformAction: doesn't have a delegate-based alternative

from react-native-tooltip.

bhaumikdesai91 avatar bhaumikdesai91 commented on July 19, 2024

@goshakkk In my case, I am being able to allow selection but I want to add another action in the tooltip menu. Right now it only shows default Copy,Share,Speak etc. options.I already have done this in Objective C, Take a look at this:

UIMenuItem *customMenuItem = [[UIMenuItem alloc] initWithTitle:@"CustomMenu" action:@selector(customDataProcessing)];
[[UIMenuController sharedMenuController] setMenuItems:@[customMenuItem]];
[[UIMenuController sharedMenuController] update];

What do you think?

from react-native-tooltip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.