mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
allow dialog to be aligned to bottom
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user