-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): Add modal for billing information
- Loading branch information
1 parent
647f441
commit b193c89
Showing
10 changed files
with
116 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React, {useState, useCallback} from 'react'; | ||
import { View, Text, Button, StyleSheet } from 'react-native'; | ||
import Modal from 'react-native-modal'; | ||
import { StatusBar } from "expo-status-bar"; | ||
|
||
const SimpleModal = ({ isVisible, onClose }) => { | ||
return ( | ||
<Modal | ||
isVisible={isVisible} | ||
onBackdropPress={onClose} | ||
useNativeDriver={true} | ||
backdropOpacity={0.5} | ||
// backdropColor="#152432" | ||
// animationIn="fadeIn" | ||
// animationOut="fadeOut" | ||
swipeDirection={['down', 'up']} // Permite deslizar hacia abajo y arriba para cerrar | ||
onSwipeComplete={onClose} // Se llama cuando se completa el gesto de deslizamiento | ||
propagateSwipe // Permite que los gestos de deslizamiento se propaguen a los hijos, útil para ScrollView dentro del modal | ||
> | ||
{/* <StatusBar style="ligth" backgroundColor='#84A1A7' /> */} | ||
<View style={styles.modalContent}> | ||
<Text>Contenido del modal</Text> | ||
<Button title="Cerrar" onPress={onClose} /> | ||
</View> | ||
</Modal> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
modalContent: { | ||
backgroundColor: 'white', | ||
borderRadius: 4, | ||
padding: 16, | ||
alignItems: 'center', | ||
shadowOpacity: 0.25, | ||
shadowRadius: 4, | ||
elevation: 5, | ||
}, | ||
}); | ||
|
||
export default SimpleModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters