diff --git a/src/components/Echarts/index.js b/src/components/Echarts/index.js index 4c557d2..b5feea7 100644 --- a/src/components/Echarts/index.js +++ b/src/components/Echarts/index.js @@ -33,7 +33,7 @@ export default class App extends Component { backgroundColor: this.props.backgroundColor || 'transparent' }} scalesPageToFit={Platform.OS !== 'ios'} - source={require('./tpl.html')} + source={{uri:'file:///android_asset/tpl.html'}} onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null} />