Pārlūkot izejas kodu

[RN] Support landscape and portrait orientations in Dialog

master
Saúl Ibarra Corretgé 7 gadus atpakaļ
vecāks
revīzija
eea6af51db

+ 2
- 1
react/features/base/dialog/components/Dialog.native.js Parādīt failu

@@ -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
 

Notiek ielāde…
Atcelt
Saglabāt