12345678910111213141516171819202122232425262728 |
- import {ActivityIndicator, Text, View} from 'react-native';
- import public_css from '../../source/css/public_css';
- import React from 'react';
- // 列表分页加载尾部组件
- //参数: 0: 无数据 1:加载中 2:上拉加载
- export const Footer = (footType) => {
- if (footType === 0) {
- return (
- <View style={public_css.footNoData}>
- <Text style={public_css.footNoDataText}>没有更多数据了</Text>
- </View>
- );
- } else if (footType === 1) {
- return (
- <View style={public_css.footerLoad}>
- <ActivityIndicator />
- <Text>正在加载...</Text>
- </View>
- );
- } else if (footType === 2) {
- return (
- <View style={public_css.footUpLoad}>
- <Text style={public_css.footUpLoadText}>上拉加载</Text>
- </View>
- );
- }
- };
|