feat(mobile/navigation): disabled bottom tab navigator backBehavior (#12320)

* feat(mobile/navigation): disabled backBehavior in bottom tab navigator
This commit is contained in:
Calinteodor 2022-10-06 14:55:44 +03:00 committed by GitHub
parent ad4707c660
commit 0f7aa5a084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 14 deletions

View File

@ -68,7 +68,7 @@ const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocus
return (
<WelcomePage.Navigator
initialRouteName = { screen.welcome.tabs.recent }
backBehavior = { 'none' }
screenOptions = {{
...tabBarOptions,
headerShown: false

View File

@ -161,11 +161,6 @@ interface Props extends WithTranslation {
* Default prop for navigating between screen components(React Navigation).
*/
navigation: Object;
/**
* Callback to be invoked when settings screen is focused.
*/
onSettingsScreenFocused: Function;
}
/**

View File

@ -10,7 +10,6 @@ import {
} from 'react-native';
import { getName } from '../../app/functions';
import { ColorSchemeRegistry } from '../../base/color-scheme';
import { translate } from '../../base/i18n';
import { Icon, IconWarning } from '../../base/icons';
import JitsiStatusBar from '../../base/modal/components/JitsiStatusBar';
@ -30,11 +29,6 @@ import styles, { PLACEHOLDER_TEXT_COLOR } from './styles';
type Props = AbstractProps & {
/**
* The color schemed style of the Header component.
*/
_headerStyles: Object,
/**
* Default prop for navigating between screen components(React Navigation).
*/
@ -425,8 +419,7 @@ class WelcomePage extends AbstractWelcomePage<*> {
*/
function _mapStateToProps(state) {
return {
..._abstractMapStateToProps(state),
_headerStyles: ColorSchemeRegistry.get(state, 'Header')
..._abstractMapStateToProps(state)
// _reducedUI: state['features/base/responsive-ui'].reducedUI
};