Merge pull request #2977 from saghul/dialog-modal-orientation

[RN] Support landscape and portrait orientations in Dialog
This commit is contained in:
Zoltan Bettenbuk 2018-05-16 10:28:28 +02:00 committed by GitHub
commit 0d1d0d06a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,8 @@ class Dialog extends AbstractDialog<Props, State> {
// because we've removed Prompt and we're preserving whatever
// it's rendered only.
return this._cloneElement(el, /* props */ {
onRequestClose: this._onCancel
onRequestClose: this._onCancel,
supportedOrientations: [ 'landscape', 'portrait' ]
});
}