diff --git a/components/common/app-modal.js b/components/common/app-modal.js index c559ac5..7ee9f90 100644 --- a/components/common/app-modal.js +++ b/components/common/app-modal.js @@ -1,6 +1,7 @@ import React from 'react' import { Dimensions, + KeyboardAvoidingView, Modal, StyleSheet, TouchableOpacity, @@ -19,13 +20,15 @@ const AppModal = ({ children, onClose }) => ( transparent={true} visible={true} > - - - - + + + + + + + {children} - {children} - + ) @@ -62,6 +65,11 @@ const styles = StyleSheet.create({ elevation: 2, // works on android minWidth: '80%', }, + safeAreaView: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + }, }) export default AppModal