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} />