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