Merge pull request #2977 from saghul/dialog-modal-orientation
[RN] Support landscape and portrait orientations in Dialog
This commit is contained in:
commit
0d1d0d06a4
|
@ -153,7 +153,8 @@ class Dialog extends AbstractDialog<Props, State> {
|
||||||
// because we've removed Prompt and we're preserving whatever
|
// because we've removed Prompt and we're preserving whatever
|
||||||
// it's rendered only.
|
// it's rendered only.
|
||||||
return this._cloneElement(el, /* props */ {
|
return this._cloneElement(el, /* props */ {
|
||||||
onRequestClose: this._onCancel
|
onRequestClose: this._onCancel,
|
||||||
|
supportedOrientations: [ 'landscape', 'portrait' ]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue