21 lines
450 B
JavaScript
21 lines
450 B
JavaScript
import React, { Component } from 'react';
|
|
import { View } from 'react-native';
|
|
import WebView from 'react-native-webview';
|
|
|
|
import { Container, Echarts } from './components'
|
|
|
|
export default class App extends Component {
|
|
|
|
setNewOption(option) {
|
|
this.chart.setNewOption(option);
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Container width={this.props.width}>
|
|
<Echarts {...this.props} ref={e => this.chart = e}/>
|
|
</Container>
|
|
);
|
|
}
|
|
}
|