Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(base/modal): changed hasTabNavigator to hasExtraHeaderHeight (#14033)
Calinteodor77abbee30824
diff --git a/react/features/base/modal/components/JitsiKeyboardAvoidingView.tsx b/react/features/base/modal/components/JitsiKeyboardAvoidingView.tsxindex 5f78ff9f7d..c16783f903 100644--- a/react/features/base/modal/components/JitsiKeyboardAvoidingView.tsx+++ b/react/features/base/modal/components/JitsiKeyboardAvoidingView.tsx@@ -4,7 +4,8 @@ import {Keyboard,KeyboardAvoidingView,Platform,- StatusBar+ StatusBar,+ ViewStyle} from 'react-native';import { useSafeAreaInsets } from 'react-native-safe-area-context';@@ -38,9 +39,9 @@ interface IProps {hasBottomTextInput: boolean;/**- * Is the screen rendering a tab navigator?+ * Is the screen header having an extra height?*/- hasTabNavigator: boolean;+ hasExtraHeaderHeight?: boolean;/*** Additional style to be appended to the KeyboardAvoidingView.@@ -54,8 +55,8 @@ const JitsiKeyboardAvoidingView = (children,contentContainerStyle,disableForcedKeyboardDismiss,- hasTabNavigator,hasBottomTextInput,+ hasExtraHeaderHeight,style}: IProps) => {const headerHeight = useHeaderHeight();@@ -69,13 +70,13 @@ const JitsiKeyboardAvoidingView = (}, [ insets.bottom ]);- const tabNavigatorPadding- = hasTabNavigator ? headerHeight : 0;+ const extraHeaderHeight+ = hasExtraHeaderHeight ? headerHeight : 0;const extraBottomPadding= addBottomPadding ? bottomPadding : 0;const noNotchDevicePadding = extraBottomPadding || 10;const iosVerticalOffset- = headerHeight + noNotchDevicePadding + tabNavigatorPadding;+ = headerHeight + noNotchDevicePadding + extraHeaderHeight;const androidVerticalOffset = hasBottomTextInput? headerHeight + Number(StatusBar.currentHeight) : headerHeight;@@ -86,7 +87,7 @@ const JitsiKeyboardAvoidingView = (return (<KeyboardAvoidingViewbehavior = { Platform.OS === 'ios' ? 'padding' : 'height' }- contentContainerStyle = { contentContainerStyle }+ contentContainerStyle = { contentContainerStyle as ViewStyle }enabled = { true }keyboardVerticalOffset = {Platform.OS === 'ios'@@ -95,7 +96,7 @@ const JitsiKeyboardAvoidingView = (}onResponderRelease = { onRelease }onStartShouldSetResponder = { shouldSetResponse }- style = { style }>+ style = { style as ViewStyle }>{ children }</KeyboardAvoidingView>);diff --git a/react/features/base/modal/components/JitsiScreen.tsx b/react/features/base/modal/components/JitsiScreen.tsxindex 004fdb0845..c83b9cffc6 100644--- a/react/features/base/modal/components/JitsiScreen.tsx+++ b/react/features/base/modal/components/JitsiScreen.tsx@@ -40,9 +40,9 @@ interface IProps {hasBottomTextInput?: boolean;/**- * Is the screen rendering a tab navigator?+ * Is the screen header having an extra height?*/- hasTabNavigator?: boolean;+ hasExtraHeaderHeight?: boolean;/*** Insets for the SafeAreaView.@@ -61,8 +61,8 @@ const JitsiScreen = ({children,disableForcedKeyboardDismiss = false,footerComponent,- hasTabNavigator = false,hasBottomTextInput = false,+ hasExtraHeaderHeight = false,safeAreaInsets = [ 'left', 'right' ],style}: IProps) => {@@ -72,7 +72,7 @@ const JitsiScreen = ({contentContainerStyle = { contentContainerStyle }disableForcedKeyboardDismiss = { disableForcedKeyboardDismiss }hasBottomTextInput = { hasBottomTextInput }- hasTabNavigator = { hasTabNavigator }+ hasExtraHeaderHeight = { hasExtraHeaderHeight }style = { style }><SafeAreaViewedges = { safeAreaInsets }diff --git a/react/features/chat/components/native/Chat.tsx b/react/features/chat/components/native/Chat.tsxindex f14ed95054..e2abf5b5b4 100644--- a/react/features/chat/components/native/Chat.tsx+++ b/react/features/chat/components/native/Chat.tsx@@ -65,7 +65,7 @@ class Chat extends Component<IProps> {<ChatInputBar onSend = { this._onSendMessage } />}hasBottomTextInput = { true }- hasTabNavigator = { true }+ hasExtraHeaderHeight = { true }style = { styles.chatContainer }>{/* @ts-ignore */}<MessageContainer messages = { _messages } />diff --git a/react/features/lobby/components/native/LobbyChatScreen.tsx b/react/features/lobby/components/native/LobbyChatScreen.tsxindex 8370e2f0d4..157ae6c7cb 100644--- a/react/features/lobby/components/native/LobbyChatScreen.tsx+++ b/react/features/lobby/components/native/LobbyChatScreen.tsx@@ -29,7 +29,10 @@ class LobbyChatScreen extendsconst { _lobbyChatMessages } = this.props;return (- <JitsiScreen style = { styles.lobbyChatWrapper }>+ <JitsiScreen+ hasBottomTextInput = { true }+ hasExtraHeaderHeight = { true }+ style = { styles.lobbyChatWrapper }>{/* @ts-ignore */}<MessageContainer messages = { _lobbyChatMessages } /><ChatInputBar onSend = { this._onSendMessage } />diff --git a/react/features/lobby/components/native/styles.ts b/react/features/lobby/components/native/styles.tsindex d329305cf0..a3f3e96c47 100644--- a/react/features/lobby/components/native/styles.ts+++ b/react/features/lobby/components/native/styles.ts@@ -4,10 +4,7 @@ export default {lobbyChatWrapper: {backgroundColor: BaseTheme.palette.ui01,- alignItems: 'stretch',- flexDirection: 'column',- justifyItems: 'center',- height: '100%'+ flex: 1},passwordJoinButtons: {diff --git a/react/features/polls/components/native/PollsPane.tsx b/react/features/polls/components/native/PollsPane.tsxindex 0ff750ccb0..a182739c24 100644--- a/react/features/polls/components/native/PollsPane.tsx+++ b/react/features/polls/components/native/PollsPane.tsx@@ -48,7 +48,7 @@ const PollsPane = (props: AbstractProps) => {<JitsiScreencontentContainerStyle = { chatStyles.pollPane as StyleType }disableForcedKeyboardDismiss = { true }- hasTabNavigator = { true }+ hasExtraHeaderHeight = { true }style = { chatStyles.pollPaneContainer as StyleType }>{createMode