feat(mobile/navigation): added screen orientation based on Platform

This commit is contained in:
Calin Chitu 2022-06-10 18:22:44 +03:00 committed by Saúl Ibarra Corretgé
parent ad8cdcd81b
commit dfa761b963
1 changed files with 21 additions and 4 deletions

View File

@ -1,4 +1,5 @@
import React from 'react'; import React from 'react';
import { Platform } from 'react-native';
import { import {
Icon, Icon,
@ -42,7 +43,11 @@ export const drawerScreenOptions = {
headerShown: true, headerShown: true,
headerStyle: { headerStyle: {
backgroundColor: BaseTheme.palette.screen02Header backgroundColor: BaseTheme.palette.screen02Header
} },
orientation: Platform.select({
ios: 'default',
android: 'all'
})
}; };
/** /**
@ -134,7 +139,11 @@ export const helpScreenOptions = {
export const conferenceScreenOptions = { export const conferenceScreenOptions = {
animation: 'default', animation: 'default',
gestureEnabled: false, gestureEnabled: false,
headerShown: false headerShown: false,
orientation: Platform.select({
ios: 'default',
android: 'all'
})
}; };
/** /**
@ -164,7 +173,11 @@ export const presentationScreenOptions = {
}, },
headerTitleStyle: { headerTitleStyle: {
color: BaseTheme.palette.text01 color: BaseTheme.palette.text01
} },
orientation: Platform.select({
ios: 'default',
android: 'all'
})
}; };
/** /**
@ -250,5 +263,9 @@ export const sharedDocumentScreenOptions = {
}, },
headerTitleStyle: { headerTitleStyle: {
color: BaseTheme.palette.text01 color: BaseTheme.palette.text01
} },
orientation: Platform.select({
ios: 'default',
android: 'all'
})
}; };