react-native-echarts/example/src/components/Echarts/index.js

20 lines
356 B
JavaScript
Raw Normal View History

2016-10-21 07:05:57 +00:00
import React, { Component } from 'react';
import { WebView } from 'react-native';
import tpl from './tpl';
import echarts from './echarts.min';
export default class App extends Component {
render() {
return (
<WebView
style={{
height: this.props.height || 400,
}}
source={{html: tpl}}
/>
);
}
}