webview 相关问题

1.通过WebView中的onNavigationStateChange属性进行高度的改变,通过更改属性值进行高度的改变

https://blog.csdn.net/YanceChen2013/article/details/77151208

https://flexwork.io/blog/webview-height-html-content-react-native/

2.webview android端html乱码问题
https://blog.csdn.net/TianciZhu/article/details/78827221

  

3.webview ios侧边滑动条隐藏问题


4.webview html标签不完整问题
将属性source={{ html: ${initHtml}, baseUrl: '' }}

 this.webView = ref}
            automaticallyAdjustContentInsets={false}
            source={{ html: `${initHtml}`, baseUrl: '' }}
            // onNavigationStateChange={(event)=>{console.log(event)}}
            javaScriptEnabled={true}
            domStorageEnabled={false}
            decelerationRate="normal"
            messagingEnabled={true}
            scalesPageToFit={true}
            style={{flex: 1}}
        />

5.webview html img标签无样式导致大图超出视图问题
修改原html标签

const initHtml = originalHtml.replace(new RegExp("

你可能感兴趣的:(webview 相关问题)