2016-10-21 07:05:57 +00:00
|
|
|
import React, { Component } from 'react';
|
2024-03-28 17:29:16 +00:00
|
|
|
import { View } from 'react-native';
|
|
|
|
|
import WebView from 'react-native-webview';
|
|
|
|
|
|
2016-10-21 07:54:29 +00:00
|
|
|
import { Container, Echarts } from './components'
|
2016-10-21 07:05:57 +00:00
|
|
|
|
|
|
|
|
export default class App extends Component {
|
2018-01-03 00:27:48 +00:00
|
|
|
|
|
|
|
|
setNewOption(option) {
|
|
|
|
|
this.chart.setNewOption(option);
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-21 07:05:57 +00:00
|
|
|
render() {
|
|
|
|
|
return (
|
2016-10-21 07:54:29 +00:00
|
|
|
<Container width={this.props.width}>
|
2018-01-03 00:27:48 +00:00
|
|
|
<Echarts {...this.props} ref={e => this.chart = e}/>
|
2016-10-21 07:54:29 +00:00
|
|
|
</Container>
|
2016-10-21 07:05:57 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|