import { useColors } from './Provider'; import React from 'react'; import { Text, View } from 'react-native'; import { ActivityIndicator, Modal, Portal } from 'react-native-paper'; interface Props { isVisible: boolean; label?: string; } const LoadingSpinner = (props: Props) => { const { getColor } = useColors(); return ( {}} contentContainerStyle={{ alignContent: 'center', alignItems: 'center', }} dismissable={false} > {props.label || 'Cargando...'} ); }; export default LoadingSpinner;