浏览代码

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

正在加载...
取消
保存