瀏覽代碼

[RN] Support landscape and portrait orientations in Dialog

master
Saúl Ibarra Corretgé 7 年之前
父節點
當前提交
eea6af51db
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      react/features/base/dialog/components/Dialog.native.js

+ 2
- 1
react/features/base/dialog/components/Dialog.native.js 查看文件

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

Loading…
取消
儲存