xref: /MusicFree/src/components/base/listLoading.tsx (revision 6704747af84cebd842b258efac7143542722fac5)
1import React from 'react';
2import {StyleSheet, View} from 'react-native';
3import rpx from '@/utils/rpx';
4import { ActivityIndicator, useTheme } from 'react-native-paper';
5import { fontSizeConst, fontWeightConst } from '@/constants/uiConst';
6import ThemeText from './themeText';
7
8
9interface ILoadingProps {}
10export default function ListLoading(props: ILoadingProps) {
11  const {colors} = useTheme();
12
13  return (
14    <View style={style.wrapper}>
15      <ActivityIndicator animating color={colors.text} size={fontSizeConst.title}></ActivityIndicator>
16    </View>
17  );
18}
19
20const style = StyleSheet.create({
21  wrapper: {
22    width: '100%',
23    height: rpx(100),
24    justifyContent: 'center',
25    alignItems: 'center',
26  },
27});
28