![](/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.