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