This is a custom fork of react-native-htmlview
A component which takes HTML content and renders it as native views, with customizable style and handling of links, etc.
props:
direction: the flexDirection of element of the childrenvalue: a string of HTML content to renderonLinkPress: a function which will be called with a url when a link is pressed. Passing this prop will override how links are handled (defaults to callingLinkingIOS.openURL(url))stylesheet: a stylesheet object keyed by tag name, which will override the styles applied to those respective tags.renderNode: a custom function to render HTML nodes however you see fit. If the function returnsundefined(notnull), the default renderer will be used for that node.
varReact=require('rn-htmlview')var{Text, View, ListView}=ReactvarHTMLView=require('react-native-htmlview')varContentView=React.createClass({render(){return(varhtmlContent='<p><a href="">♥ nice job!</a></p>'<HTMLViewvalue={htmlContent}onLinkPress={(url)=>console.log('navigating to: ',url)}stylesheet={styles}/>)}})varstyles=StyleSheet.create({a: {fontWeight: '300',color: '#FF3366',// pink links},})See HISTORY