allow dialog to be aligned to bottom

This commit is contained in:
ammarahm-ed
2021-07-19 09:44:02 +05:00
parent 4f1cc86df9
commit dd99a44ce6

View File

@@ -20,6 +20,7 @@ const BaseDialog = ({
statusBarTranslucent = true, statusBarTranslucent = true,
transparent, transparent,
centered = true, centered = true,
bottom = false,
background = null background = null
}) => { }) => {
const [state, dispatch] = useTracked(); const [state, dispatch] = useTracked();
@@ -52,7 +53,7 @@ const BaseDialog = ({
style={[ style={[
styles.backdrop, styles.backdrop,
{ {
justifyContent: centered ? 'center' : 'flex-start', justifyContent: centered ? 'center' : bottom ? 'flex-end' : 'flex-start',
}, },
]}> ]}>
<TouchableOpacity <TouchableOpacity