From 0e592c52e7f3c86725b2424c5853f60818a23e09 Mon Sep 17 00:00:00 2001 From: hydraZhang <670688668@qq.com> Date: Thu, 15 Nov 2018 14:46:47 +0800 Subject: [PATCH] @bugfix, Webview does not show in the release version --- src/components/Echarts/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Echarts/index.js b/src/components/Echarts/index.js index 4c557d2..fe86c8c 100644 --- a/src/components/Echarts/index.js +++ b/src/components/Echarts/index.js @@ -33,6 +33,7 @@ export default class App extends Component { backgroundColor: this.props.backgroundColor || 'transparent' }} scalesPageToFit={Platform.OS !== 'ios'} + originWhitelist={['*']} source={require('./tpl.html')} onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} />