- 授权协议: ISC
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/jsdf/react-native-htmlview
软件介绍
react-native-htmlview 是一个将 HTML 目录作为本地视图的控件,其风格可以定制。
应用示例:
代码示例:
var React = require('react-native')
var {Text, View, ListView} = Reactvar HTMLView = require('react-native-htmlview')
var ContentView = React.createClass({
render() {
return (
var htmlContent = '<p><a href="">♥ nice job!</a></p>'
<HTMLView
value={htmlContent}
onLinkPress={(url) => console.log('navigating to: ', url)}
stylesheet={styles}
/>
)
}
})
