fix dialogs not opening in landscape

This commit is contained in:
ammarahm-ed
2022-01-12 21:41:44 +05:00
parent bb27ebdd90
commit d942ac46bf
2 changed files with 14 additions and 0 deletions

View File

@@ -42,6 +42,13 @@ const BaseDialog = ({
transparent={true}
animated
statusBarTranslucent={statusBarTranslucent}
supportedOrientations={[
'portrait',
'portrait-upside-down',
'landscape',
'landscape-left',
'landscape-right'
]}
onShow={() => {
if (onShow) {
onShow();

View File

@@ -282,6 +282,13 @@ const MergeEditor = () => {
onRequestClose={() => {
close();
}}
supportedOrientations={[
'portrait',
'portrait-upside-down',
'landscape',
'landscape-left',
'landscape-right'
]}
visible={true}>
<SafeAreaView
style={{