ソースを参照

[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
 

読み込み中…
キャンセル
保存