meliorence / react-native-render-html

iOS/Android pure javascript react-native component that renders your HTML into 100% native views
https://meliorence.github.io/react-native-render-html/
BSD 2-Clause "Simplified" License
3.48k stars 589 forks source link

[DOUBT] tag <a> can get a Callback? #560

Closed Girum closed 2 years ago

Girum commented 2 years ago

Hi! I tested to send a tag with a link. With renders ok and open the browser when I click that. But, I when I used a DeepLink to open, even if it's ok, I need to fire another functions in the code (in the same time i click the link). There's any way to do that? To when I click the hyperlink, call another functions?

jsamr commented 2 years ago

@Girum Yes! See https://meliorence.github.io/react-native-render-html/docs/faq#how-to-intercept-press-events-on-links

Girum commented 2 years ago

@Girum Yes! See https://meliorence.github.io/react-native-render-html/docs/faq#how-to-intercept-press-events-on-links

Thanks! Helped a lot!