I have a component called RenderHtml
which renders my html:
<RenderHTMLSource
contentWidth={width * 0.8}
source={{html: props.html}}
/>
And a custom img
renderer that looks like this:
<Touchable
onPress={() => props.???}
>
<Image src={props.tnode.attributes.src} />
</Touchable>
And i want to call a function inside RenderHtml
from Touchable's onPress method.
Is there a way to pass a callback to custom renderers?