import { ActivityIndicator } from 'react-native';
import Modal from 'react-native-modal';

type Props = {
   isVisible: boolean
   setVisible: (value: boolean) => void
}

export default function ModalLoading({ isVisible, setVisible }: Props) {
   return (
      <Modal
         animationIn={"slideInUp"}
         animationOut={"slideOutDown"}
         isVisible={isVisible}
         hideModalContentWhileAnimating={true}
         onBackdropPress={() => {
            // setVisible(false) 
         }}
      >
         <ActivityIndicator size="large" />
      </Modal>
   )
}