react-native-echarts/src/index.js

19 lines
414 B
JavaScript
Raw Normal View History

2016-10-21 07:05:57 +00:00
import React, { Component } from 'react';
2016-10-21 07:54:29 +00:00
import { WebView, View } from 'react-native';
import { Container, Echarts } from './components'
2016-10-21 07:05:57 +00:00
export default class App extends Component {
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}>
<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
);
}
}