![](/img/trans.png)
[英]React Native Android WebView: javaScriptEnabled does not seem to be working
[英]Javascript is not working in React-Native WebView for Android (javaScriptEnabled = true is set)
無法在Android上的React-Native WebView中使用JavaScript:
<View style={[styles.flex]}>
<WebView
style={[styles.flex]}
source={{uri: 'http://partners.zeew.eu/'}}
javaScriptEnabled={true}
/>
</View>
嘗試在真正的Android設備上運行。
我不確定是否需要更多的javaScriptEnabled 。
render() { return ( <WebView source={{ uri: this.props.uri }} style={{ marginTop: 0 }} scalesPageToFit javaScriptEnabled domStorageEnabled startInLoadingState mixedContentMode="always" /> ); }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.