网上搜索没有找到关闭React Native下webview控件的缓存的方法,经测试找到解决方案,记录如下
<View style={styles.container}>
<WebView source={{ uri: "http://somehost/somepath/file.html", method: ‘GET‘, headers: { ‘Cache-Control‘:‘no-cache‘} }} style={{ width: Dimensions.get(‘window‘).width, height: Dimensions.get(‘window‘).height }}></WebView>
</View>
原文:https://www.cnblogs.com/jkr666666/p/10559898.html