Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Support landscape and portrait orientations in Dialog

Saúl Ibarra Corretgéeea6af51db5b
diff --git a/react/features/base/dialog/components/Dialog.native.js b/react/features/base/dialog/components/Dialog.native.js
index 74e2633f0f..469c90cea7 100644
--- a/react/features/base/dialog/components/Dialog.native.js
+++ b/react/features/base/dialog/components/Dialog.native.js
@@ -153,7 +153,8 @@ class Dialog extends AbstractDialog<Props, State> {
// because we've removed Prompt and we're preserving whatever
// it's rendered only.
return this._cloneElement(el, /* props */ {
- onRequestClose: this._onCancel
+ onRequestClose: this._onCancel,
+ supportedOrientations: [ 'landscape', 'portrait' ]
});
}