empty.tsx (ecd094f35d9ef9936e63ef66e25481110f3ef926) | empty.tsx (4060c00a75883036bbd315fb25c90065209312b3) |
---|---|
1import React from 'react'; 2import {StyleSheet, View} from 'react-native'; 3import rpx from '@/utils/rpx'; | 1import React from 'react'; 2import {StyleSheet, View} from 'react-native'; 3import rpx from '@/utils/rpx'; |
4import {ActivityIndicator, useTheme} from 'react-native-paper'; 5import {fontWeightConst} from '@/constants/uiConst'; | |
6import ThemeText from './themeText'; 7 8interface IEmptyProps { | 4import ThemeText from './themeText'; 5 6interface IEmptyProps { |
9 content?: string; | 7 content?: string; |
10} 11export default function Empty(props: IEmptyProps) { | 8} 9export default function Empty(props: IEmptyProps) { |
12 return ( 13 <View style={style.wrapper}> 14 <ThemeText fontSize="title"> 15 {props?.content ?? '什么都没有呀~'} 16 </ThemeText> 17 </View> 18 ); | 10 return ( 11 <View style={style.wrapper}> 12 <ThemeText fontSize="title"> 13 {props?.content ?? '什么都没有呀~'} 14 </ThemeText> 15 </View> 16 ); |
19} 20 21const style = StyleSheet.create({ | 17} 18 19const style = StyleSheet.create({ |
22 wrapper: { 23 width: '100%', 24 flex: 1, 25 minHeight: rpx(300), 26 justifyContent: 'center', 27 alignItems: 'center', 28 }, | 20 wrapper: { 21 width: '100%', 22 flex: 1, 23 minHeight: rpx(300), 24 justifyContent: 'center', 25 alignItems: 'center', 26 }, |
29}); | 27}); |