Closed ospfranco closed 7 years ago
render() {
const commentText = "<p><a href="http://www.google.com" target="_blank" rel="noopener noreferrer">google.com</a></p>";
return (){
<View style={[flexStyle, appStyles.chatBubble]}>
<Text style={appStyles.chatBubbleText}>
<HTMLView value={{commentText}} />
</Text>
</View>
}
Hey, I'm using a combination of Autolinker and HTMLView to render text.
I want to pass something like:
const commentText = <p><a href="http://www.google.com" target="_blank" rel="noopener noreferrer">google.com</a></p>
and render it like:
but when I place HTMLView within another tag, it does not get rendered, any idea on how to achieve this?