react-native-echarts/src/index.js

21 lines
450 B
JavaScript
Raw Normal View History

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 {
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
);
}
}