File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ type Props = {
41
41
* Style for the content of the modal
42
42
*/
43
43
contentContainerStyle ?: StyleProp < ViewStyle > ;
44
+ /**
45
+ * Style for the wrapper of the modal.
46
+ * Use this prop to change the default wrapper style or to override safe area insets with marginTop and marginBottom.
47
+ */
48
+ style ?: StyleProp < ViewStyle > ;
44
49
/**
45
50
* @optional
46
51
*/
@@ -191,6 +196,7 @@ class Modal extends React.Component<Props, State> {
191
196
const {
192
197
children,
193
198
dismissable,
199
+ style,
194
200
theme,
195
201
contentContainerStyle,
196
202
overlayAccessibilityLabel,
@@ -221,6 +227,7 @@ class Modal extends React.Component<Props, State> {
221
227
style = { [
222
228
styles . wrapper ,
223
229
{ marginTop : TOP_INSET , marginBottom : BOTTOM_INSET } ,
230
+ style ,
224
231
] }
225
232
pointerEvents = "box-none"
226
233
>
You can’t perform that action at this time.
0 commit comments