Skip to content

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

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

Calinteodor0f7aa5a08482
diff --git a/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js b/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js
index 65aaa23c55..5f2d1cdb13 100644
--- a/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js
+++ b/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js
@@ -68,7 +68,7 @@ const WelcomePageTabs = ({ disabled, onListContainerPress, onSettingsScreenFocus
return (
<WelcomePage.Navigator
- initialRouteName = { screen.welcome.tabs.recent }
+ backBehavior = { 'none' }
screenOptions = {{
...tabBarOptions,
headerShown: false
diff --git a/react/features/settings/components/native/SettingsView.tsx b/react/features/settings/components/native/SettingsView.tsx
index fe27ce60b4..63236c7209 100644
--- a/react/features/settings/components/native/SettingsView.tsx
+++ b/react/features/settings/components/native/SettingsView.tsx
@@ -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;
}
/**
diff --git a/react/features/welcome/components/WelcomePage.native.js b/react/features/welcome/components/WelcomePage.native.js
index 6460fec5c9..6c6640cd32 100644
--- a/react/features/welcome/components/WelcomePage.native.js
+++ b/react/features/welcome/components/WelcomePage.native.js
@@ -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
};