Hey.
I want to render some hypertext, e.g
varhypertext='this is <a href="http://facebook.com">facebook.com</a> link';
I tried programmatically splitting into
<Text><Text>this is </Text><TextonPress={this.onLinkPress}style={{color: '#0000ff'}}>facebook.com</Text><Text> link</Text></Text>but obviously onPress wouldn't work, because nested text is transformed.
- Should a message be thrown if
onPress is being set on the nested text? - Is there any good way to get a click handler on the link?
Hey.
I want to render some hypertext, e.g
I tried programmatically splitting into
but obviously
onPresswouldn't work, because nested text is transformed.onPressis being set on the nested text?