import React from 'react';
import { ActivityIndicator, StyleSheet, View, ViewStyle } from 'react-native';
import { m3Colors } from '../theme/proulr-theme';
export const loadingIndicatorSize = 'large' as const;
export const loadingIndicatorColor = m3Colors.primary;
type LoadingIndicatorProps = {
fullScreen?: boolean;
color?: string;
style?: ViewStyle;
};
export function AppLoadingSpinner({
fullScreen = false,
color = loadingIndicatorColor,
style,
}: LoadingIndicatorProps) {
const spinner = ;
if (fullScreen) {
return {spinner};
}
if (style) {
return {spinner};
}
return spinner;
}
const styles = StyleSheet.create({
fullScreen: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});