Links #634
Closed
TrickSantos
started this conversation in
General
Links
#634
Replies: 1 comment
-
|
@TrickSantos Links are handled by default. If needed please use custom components class CustomRenderer extends Renderer implements RendererInterface {
constructor() {
super();
}
link(children: string | ReactNode[], href: string, styles?: TextStyle,): ReactNode {
return (
<Pressable key={this.getKey()} onPress={Linking.openURL(href)}>
{children}
</Pressable>
);
}
}const renderer = new CustomRenderer();
<Markdown
value={"`Hello world`"}
flatListProps={{
initialNumToRender: 8,
}}
renderer={renderer}
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How handle links? Are possible to add a onPress handle in the rendering method?
Beta Was this translation helpful? Give feedback.
All reactions