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
fix(rn,toolbox) fill gap underneath Toolbox
Saúl Ibarra Corretgé9d4e49a5af2c
diff --git a/react/features/conference/components/native/Conference.js b/react/features/conference/components/native/Conference.jsindex 4da1ac4846..6e1e48071b 100644--- a/react/features/conference/components/native/Conference.js+++ b/react/features/conference/components/native/Conference.js@@ -1,7 +1,7 @@// @flowimport React from 'react';-import { NativeModules, SafeAreaView, StatusBar } from 'react-native';+import { NativeModules, SafeAreaView, StatusBar, View } from 'react-native';import { appNavigate } from '../../../app/actions';import { PIP_ENABLED, FULLSCREEN_ENABLED, getFeatureFlag } from '../../../base/flags';@@ -272,7 +272,7 @@ class Conference extends AbstractConference<Props, *> {</TintedView>}- <SafeAreaView+ <ViewpointerEvents = 'box-none'style = { styles.toolboxAndFilmstripContainer }>@@ -285,10 +285,8 @@ class Conference extends AbstractConference<Props, *> {<LonelyMeetingExperience />{ _shouldDisplayTileView ? undefined : <Filmstrip /> }-<Toolbox />-- </SafeAreaView>+ </View><SafeAreaViewpointerEvents = 'box-none'diff --git a/react/features/toolbox/components/native/Toolbox.js b/react/features/toolbox/components/native/Toolbox.jsindex acad26d736..b2634823ea 100644--- a/react/features/toolbox/components/native/Toolbox.js+++ b/react/features/toolbox/components/native/Toolbox.js@@ -1,10 +1,9 @@// @flowimport React, { PureComponent } from 'react';-import { View } from 'react-native';+import { SafeAreaView, View } from 'react-native';import { ColorSchemeRegistry } from '../../../base/color-scheme';-import { Container } from '../../../base/react';import { connect } from '../../../base/redux';import { StyleType } from '../../../base/styles';import { ChatButton } from '../../../chat';@@ -48,12 +47,37 @@ class Toolbox extends PureComponent<Props> {* @returns {ReactElement}*/render() {+ if (!this.props._visible) {+ return null;+ }++ const { _styles } = this.props;+ const { buttonStylesBorderless, hangupButtonStyles, toggledButtonStyles } = _styles;+return (- <Container- style = { styles.toolbox }- visible = { this.props._visible }>- { this._renderToolbar() }- </Container>+ <View+ pointerEvents = 'box-none'+ style = { styles.toolboxContainer }>+ <SafeAreaView+ accessibilityRole = 'toolbar'+ pointerEvents = 'box-none'+ style = { styles.toolbox }>+ <AudioMuteButton+ styles = { buttonStylesBorderless }+ toggledStyles = { toggledButtonStyles } />+ <VideoMuteButton+ styles = { buttonStylesBorderless }+ toggledStyles = { toggledButtonStyles } />+ <ChatButton+ styles = { buttonStylesBorderless }+ toggledStyles = { this._getChatButtonToggledStyle(toggledButtonStyles) } />+ <OverflowMenuButton+ styles = { buttonStylesBorderless }+ toggledStyles = { toggledButtonStyles } />+ <HangupButton+ styles = { hangupButtonStyles } />+ </SafeAreaView>+ </View>);}@@ -87,40 +111,6 @@ class Toolbox extends PureComponent<Props> {]};}-- /**- * Renders the toolbar. In order to avoid a weird visual effect in which the- * toolbar is (visually) rendered and then visibly changes its size, it is- * rendered only after we've figured out the width available to the toolbar.- *- * @returns {React$Node}- */- _renderToolbar() {- const { _styles } = this.props;- const { buttonStylesBorderless, hangupButtonStyles, toggledButtonStyles } = _styles;-- return (- <View- accessibilityRole = 'toolbar'- pointerEvents = 'box-none'- style = { styles.toolbar }>- <AudioMuteButton- styles = { buttonStylesBorderless }- toggledStyles = { toggledButtonStyles } />- <VideoMuteButton- styles = { buttonStylesBorderless }- toggledStyles = { toggledButtonStyles } />- <ChatButton- styles = { buttonStylesBorderless }- toggledStyles = { this._getChatButtonToggledStyle(toggledButtonStyles) } />- <OverflowMenuButton- styles = { buttonStylesBorderless }- toggledStyles = { toggledButtonStyles } />- <HangupButton- styles = { hangupButtonStyles } />- </View>- );- }}/**diff --git a/react/features/toolbox/components/native/styles.js b/react/features/toolbox/components/native/styles.jsindex e9834b370c..adee0a735b 100644--- a/react/features/toolbox/components/native/styles.js+++ b/react/features/toolbox/components/native/styles.js@@ -62,7 +62,7 @@ const styles = {/*** The style of the toolbar.*/- toolbar: {+ toolbox: {alignItems: 'center',backgroundColor: ColorPalette.darkBackground,borderRadius: 3,@@ -74,9 +74,9 @@ const styles = {},/**- * The style of the root/top-level {@link Container} of {@link Toolbox}.+ * The style of the root/top-level container of {@link Toolbox}.*/- toolbox: {+ toolboxContainer: {flexDirection: 'column',flexGrow: 0,width: '100%',