Customizing Modal #450
Replies: 2 comments 2 replies
-
Adding to this, what would be the equivalent of creating a half screen modal with expo router? Here's a react navigation example I'm referencing and trying to reproduce: Is there a I don't really see a difference in the modal appearance when I change the
|
Beta Was this translation helpful? Give feedback.
-
Something like this can work, it is not perfect but it works (consider using window height instead of a hardcoded <Stack.Screen
name="(details)"
options={{
headerShown: false,
presentation: "modal",
contentStyle: {
minHeight: 500,
position: "absolute",
bottom: 0,
left: 0,
right: 0,
borderRadius: 12,
},
}}
/> |
Beta Was this translation helpful? Give feedback.
-
Hello,
How can I customize the height of a modal?
I want my modal to occupy only half of the screen.
Beta Was this translation helpful? Give feedback.
All reactions