Переглянути джерело

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

[RN] Support landscape and portrait orientations in Dialog
master
Zoltan Bettenbuk 7 роки тому
джерело
коміт
0d1d0d06a4
Аккаунт користувача з таким Email не знайдено

+ 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
 

Завантаження…
Відмінити
Зберегти