Skip to content

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

fix(rn,bottom-sheet) fixed surface color

Calinteodor4e43a31ec9d7
diff --git a/react/features/base/dialog/components/native/BottomSheet.js b/react/features/base/dialog/components/native/BottomSheet.js
index 1e5a03c12d..e4a9138947 100644
--- a/react/features/base/dialog/components/native/BottomSheet.js
+++ b/react/features/base/dialog/components/native/BottomSheet.js
@@ -142,7 +142,9 @@ class BottomSheet extends PureComponent<Props> {
<SafeAreaView
style = { [
styles.sheetItemContainer,
- _styles.sheet,
+ renderHeader
+ ? _styles.sheetHeader
+ : _styles.sheet,
style,
{
maxHeight: _height - 100
diff --git a/react/features/base/dialog/components/native/styles.js b/react/features/base/dialog/components/native/styles.js
index 7a59d038ee..c6b270c451 100644
--- a/react/features/base/dialog/components/native/styles.js
+++ b/react/features/base/dialog/components/native/styles.js
@@ -2,6 +2,7 @@
import { StyleSheet } from 'react-native';
+import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
import { ColorSchemeRegistry, schemeColor } from '../../../color-scheme';
import { BoxModel, ColorPalette } from '../../../styles';
import { PREFERRED_DIALOG_SIZE } from '../../constants';
@@ -192,9 +193,16 @@ ColorSchemeRegistry.register('BottomSheet', {
* Bottom sheet's base style.
*/
sheet: {
- backgroundColor: ColorPalette.black,
+ backgroundColor: BaseTheme.palette.ui02,
borderTopLeftRadius: 16,
borderTopRightRadius: 16
+ },
+
+ /**
+ * Bottom sheet's base style with header.
+ */
+ sheetHeader: {
+ backgroundColor: BaseTheme.palette.ui02
}
});
diff --git a/react/features/filmstrip/components/native/Thumbnail.js b/react/features/filmstrip/components/native/Thumbnail.js
index d135ecf3a8..09920e3a91 100644
--- a/react/features/filmstrip/components/native/Thumbnail.js
+++ b/react/features/filmstrip/components/native/Thumbnail.js
@@ -159,13 +159,11 @@ function Thumbnail(props: Props) {
participant
}));
}
-
- return null;
+ } else {
+ dispatch(openDialog(RemoteVideoMenu, {
+ participant
+ }));
}
-
- dispatch(openDialog(RemoteVideoMenu, {
- participant
- }));
}, [ participant, dispatch ]);
return (