How change modal width in react navigation?

20 views Asked by At

I have this setup. Stack navigator with presentation mode "modal".

enter image description here


            <Stack.Screen
                name="YourOrderDetails"
                options={{ 
                    title: "Order #687557 details",
                    presentation: 'modal',
                    contentStyle: {
                        backgroundColor: '#fff',
                    }
                }}
                component={YourOrderDetails}
            />

Sometimes I want to change modal width to make it a little wider. The documentation does not specify how to do this. Is there any solution for this? How i can do that?

0

There are 0 answers