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(base/native): make onRefresh work

Calin-Teodor156b811b455a
diff --git a/react/features/base/react/components/native/SectionList.tsx b/react/features/base/react/components/native/SectionList.tsx
index 2cffd5fbc5..783a0ea7c9 100644
--- a/react/features/base/react/components/native/SectionList.tsx
+++ b/react/features/base/react/components/native/SectionList.tsx
@@ -80,6 +80,7 @@ export default class SectionList extends Component<IProps> {
style = { styles.container as ViewStyle } >
<ReactNativeSectionList
ListEmptyComponent = { this.props.ListEmptyComponent }
+ contentContainerStyle = { styles.listContentContainer as ViewStyle }
keyExtractor = { this.props.keyExtractor }
onRefresh = { this.props.onRefresh }
refreshing = { this.props.refreshing }
diff --git a/react/features/base/react/components/native/styles.ts b/react/features/base/react/components/native/styles.ts
index 8eb22e9bff..24c367bf18 100644
--- a/react/features/base/react/components/native/styles.ts
+++ b/react/features/base/react/components/native/styles.ts
@@ -42,6 +42,10 @@ const SECTION_LIST_STYLES = {
flexDirection: 'column'
},
+ listContentContainer: {
+ flexGrow: 1
+ },
+
listItem: {
alignItems: 'center',
flex: 1,