Closed
Description
Hi,
While the htmlContent displays correctly I can't seem to get onLinkPress to work
Thanks,
John
render: function() {
var htmlContent = '<p><a href="">♥ nice job!</a></p>';
var url = 'http://gooogle.com';
return (
<View style={property.color}>
<Image source={require('../img/glow2.png')} style={property.container}>
<Navbar
title="Property Info"
subtitle=""
style={property.toolbar}
subtitleStyle={property.subtitle} />
<ScrollView style={{marginBottom: 55, backgroundColor: 'transparent'}}>
<View style={property.propertyContent}>
<Icon name="android-checkbox-outline" size={20} color="rgba(255,255,255,0.9)" style={{position: 'absolute',top:0, left: 0}}/>
<Text style={property.content}>Address {this.state.property.Address} </Text>
<HTMLView
value={htmlContent}
onLinkPress={(url) => console.log('navigating to: ', url)}
stylesheet={styles}
/>
</View>
</ScrollView>
</Image>
</View>
);
}
Metadata
Metadata
Assignees
Labels
No labels