import React, {Component} from 'react';
import {
Platform,
StyleSheet,
View,
Image,
Text,
FlatList,
Button,
} from 'react-native';
export default class App extends Component {
_flatList;
_header = ()=>{
return(
<Text style={styles.headerStyle}>
头部
</Text>
);
}
_footer = ()=>{
return(
<Text style={styles.headerStyle}>
尾部
</Text>
);
}
_itemSeparator(){
return(
<View style={
{height:1, backgroundColor:'orange'}}></View>
);
}
_renderItem = (item)=>{
var text = 'key = ' + item.index + 'title = ' + item.item.title;
return(
<View style={
{height:100, backgroundColor:'red', justifyCo