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: scrollable bottom sheet

Bettenbuk Zoltan54fdb7066f3c
diff --git a/react/features/base/dialog/components/native/BottomSheet.js b/react/features/base/dialog/components/native/BottomSheet.js
index 48276e5c02..12186cdc7a 100644
--- a/react/features/base/dialog/components/native/BottomSheet.js
+++ b/react/features/base/dialog/components/native/BottomSheet.js
@@ -1,7 +1,7 @@
// @flow
import React, { PureComponent, type Node } from 'react';
-import { Platform, SafeAreaView, View } from 'react-native';
+import { Platform, SafeAreaView, ScrollView, View } from 'react-native';
import { ColorSchemeRegistry } from '../../../color-scheme';
import { SlidingView } from '../../../react';
@@ -61,7 +61,9 @@ class BottomSheet extends PureComponent<Props> {
styles.sheetItemContainer,
_styles.sheet
] }>
- { this._getWrappedContent() }
+ <ScrollView bounces = { false }>
+ { this._getWrappedContent() }
+ </ScrollView>
</View>
</View>
</SlidingView>
diff --git a/react/features/base/dialog/components/native/styles.js b/react/features/base/dialog/components/native/styles.js
index 25645f915f..91bcdc3daf 100644
--- a/react/features/base/dialog/components/native/styles.js
+++ b/react/features/base/dialog/components/native/styles.js
@@ -37,12 +37,15 @@ export const bottomSheetStyles = {
* Style for the container of the sheet.
*/
sheetContainer: {
- alignContent: 'stretch',
+ alignItems: 'stretch',
flex: 1,
- flexDirection: 'column'
+ flexDirection: 'column',
+ justifyContent: 'flex-end'
},
sheetItemContainer: {
+ flex: -1,
+ maxHeight: '60%',
paddingHorizontal: MD_ITEM_MARGIN_PADDING
}
};