- 2018-06-01 react-native webview
- react-native-webview postMessage
- React Native react-native-webvie
- react-native-webview-crossplatfo
- React-Native WebView 测量网页高度
- React-Native WebView 测量网页高度
- React-Native Webview 和H5交互的两种方式
- 求助React-Native里包含webView上架被拒,怎么处
- 解决 Setting onMessage on a WebVie
- react-native-webview20-04-27
<WebView style={{width: width, height:this.state.height}}
ref="webview"
javaScriptEnabled={true}
domStorageEnabled={true}
showsHorizontalScrollIndicator={false}
showsVerticalScrollIndicator={false}
decelerationRate="normal"
source={{html:`${this.state.detail}window.onload=function(){window.location.hash = 1;document.title = document.body.clientHeight;}`}}
scalesPageToFit={false}
onNavigationStateChange={(title)=>{
if(title.title !=undefined) {
this.setState({
height:(parseInt(title.title)+20)
})
}
}}
/>
网友评论