import React, { Component } from 'react'; import { StyleSheet, View, FlatList, Image, } from 'react-native'; import BIChartsItem from "../commons/bi/BIChartsItem"; import BasePage from "./BasePage"; export default class EChartsPage extends BasePage { static navigationOptions = { headerBackImage:( ), //使用组件 } constructor(props){ super(props); this.state={ dataArray:['line','bar','pie'], } } renderItem(data){ return } render() { return ( "" + (item.item)} renderItem = {data=>this.renderItem(data)} /> ); } } const styles = StyleSheet.create({ container: { flex:1, backgroundColor: '#efefef', }, title:{ color:'white', fontSize:20, textAlign:'center', }, });