[RN] Support landscape and portrait orientations in Dialog

This commit is contained in:
Saúl Ibarra Corretgé 2018-05-15 17:55:33 +02:00
parent df7b8e51fc
commit eea6af51db
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' ]
});
}