BlueWallet/components/BlueLoading.tsx
2025-06-10 09:24:17 +01:00

21 lines
668 B
TypeScript

import React from 'react';
import { ActivityIndicator, View, ViewProps, ActivityIndicatorProps, StyleSheet } from 'react-native';
import { useTheme } from './themes';
interface BlueLoadingProps extends ViewProps, Pick<ActivityIndicatorProps, 'size' | 'color'> {}
export const BlueLoading: React.FC<BlueLoadingProps> = props => {
const { color, size, ...otherProps } = props;
const { colors } = useTheme();
return (
<View style={styles.container} {...otherProps}>
<ActivityIndicator size={size} color={color || colors.buttonTextColor} />
</View>
);
};
const styles = StyleSheet.create({
container: { flex: 1, justifyContent: 'center' },
});