import React from 'react'; import {StyleSheet, View} from 'react-native'; import rpx from '@/utils/rpx'; import {ActivityIndicator, useTheme} from 'react-native-paper'; import ThemeText from './themeText'; interface ILoadingProps { text?: string; } export default function Loading(props: ILoadingProps) { const {colors} = useTheme(); return ( {props?.text ?? '加载中...'} ); } const style = StyleSheet.create({ wrapper: { width: '100%', flex: 1, justifyContent: 'center', alignItems: 'center', }, text: { marginTop: rpx(48), }, });