RN 组件之一 WebView
下文:react-native-autoheight-webview
let {deviceWidth, deviceHeight} = Dimensions.get('window');
<WebView
source={{url: 'https://github.com/facebook/react-native'}} //载入url或静态的页面
style = {{width:deviceWidth,height:deviceHeight-20}}
onError = {() => {}} //加载失败的回调
onLoad = {() => {}} //加载完成的回调
onNavigationStateChange = {() => {}} //当导航状态发生改变的回调
/>