From dfa761b963c27f2d12c29ff989309b06d0b4e50a Mon Sep 17 00:00:00 2001 From: Calin Chitu Date: Fri, 10 Jun 2022 18:22:44 +0300 Subject: [PATCH] feat(mobile/navigation): added screen orientation based on Platform --- .../mobile/navigation/screenOptions.js | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/react/features/mobile/navigation/screenOptions.js b/react/features/mobile/navigation/screenOptions.js index 7d245520d..0494726b9 100644 --- a/react/features/mobile/navigation/screenOptions.js +++ b/react/features/mobile/navigation/screenOptions.js @@ -1,4 +1,5 @@ import React from 'react'; +import { Platform } from 'react-native'; import { Icon, @@ -42,7 +43,11 @@ export const drawerScreenOptions = { headerShown: true, headerStyle: { backgroundColor: BaseTheme.palette.screen02Header - } + }, + orientation: Platform.select({ + ios: 'default', + android: 'all' + }) }; /** @@ -134,7 +139,11 @@ export const helpScreenOptions = { export const conferenceScreenOptions = { animation: 'default', gestureEnabled: false, - headerShown: false + headerShown: false, + orientation: Platform.select({ + ios: 'default', + android: 'all' + }) }; /** @@ -164,7 +173,11 @@ export const presentationScreenOptions = { }, headerTitleStyle: { color: BaseTheme.palette.text01 - } + }, + orientation: Platform.select({ + ios: 'default', + android: 'all' + }) }; /** @@ -250,5 +263,9 @@ export const sharedDocumentScreenOptions = { }, headerTitleStyle: { color: BaseTheme.palette.text01 - } + }, + orientation: Platform.select({ + ios: 'default', + android: 'all' + }) };