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(calendar-sync) fixed pull to refresh on Calendar List mobile

Calin Chitu9651229a17b4
diff --git a/react/features/calendar-sync/components/CalendarList.native.js b/react/features/calendar-sync/components/CalendarList.native.js
index 6ab7599274..8ab089dbf8 100644
--- a/react/features/calendar-sync/components/CalendarList.native.js
+++ b/react/features/calendar-sync/components/CalendarList.native.js
@@ -4,7 +4,6 @@ import React from 'react';
import {
Text,
TouchableOpacity,
- TouchableWithoutFeedback,
View
} from 'react-native';
@@ -32,11 +31,6 @@ type Props = {
*/
disabled: boolean,
- /**
- * Callback to be invoked when pressing the list container.
- */
- onListContainerPress?: boolean,
-
/**
* The translate function.
*/
@@ -81,23 +75,20 @@ class CalendarList extends AbstractPage<Props> {
* @inheritdoc
*/
render() {
- const { disabled, onListContainerPress } = this.props;
+ const { disabled } = this.props;
return (
CalendarListContent
- ? <TouchableWithoutFeedback
- onPress = { onListContainerPress }>
- <View
- style = {
- disabled
- ? styles.calendarSyncDisabled
- : styles.calendarSync }>
- <CalendarListContent
- disabled = { disabled }
- listEmptyComponent
- = { this._getRenderListEmptyComponent() } />
- </View>
- </TouchableWithoutFeedback>
+ ? <View
+ style = {
+ disabled
+ ? styles.calendarSyncDisabled
+ : styles.calendarSync }>
+ <CalendarListContent
+ disabled = { disabled }
+ listEmptyComponent
+ = { this._getRenderListEmptyComponent() } />
+ </View>
: null
);
}
diff --git a/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js b/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js
index 2915273196..4f743c67eb 100644
--- a/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js
+++ b/react/features/mobile/navigation/components/welcome/components/WelcomePageTabs.js
@@ -42,8 +42,7 @@ const WelcomePageTabs = ({ disabled, onListContainerPress }: Props) => {
const CalendarListScreen = useCallback(() =>
(<CalendarList
- disabled = { disabled }
- onListContainerPress = { onListContainerPress } />)
+ disabled = { disabled } />)
);
return (