upd: login
Deskripsi: - update axios api check phone number - modal loading - fungsi random number 4 digit No Issues
This commit is contained in:
21
components/modalLoading.tsx
Normal file
21
components/modalLoading.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user