diff --git a/src/view/com/util/List.web.tsx b/src/view/com/util/List.web.tsx index 2fb790c47b..777f56b9d6 100644 --- a/src/view/com/util/List.web.tsx +++ b/src/view/com/util/List.web.tsx @@ -34,10 +34,10 @@ function ListImpl( desktopFixedHeight, // TODO headerOffset, keyExtractor, - refreshing, + refreshing: _unsupportedRefreshing, onEndReached, onEndReachedThreshold, - onRefresh, + onRefresh: _unsupportedOnRefresh, onScrolledDownChange, // TODO renderItem, extraData, @@ -55,7 +55,7 @@ function ListImpl( ) } - let header = null + let header: ListProps['ListHeaderComponent'] = null if (ListHeaderComponent != null) { if (typeof ListHeaderComponent === 'object') { header = ListHeaderComponent @@ -65,7 +65,7 @@ function ListImpl( } } - let footer = null + let footer: ListProps['ListHeaderComponent'] = null if (ListFooterComponent != null) { if (typeof ListFooterComponent === 'object') { footer = ListFooterComponent @@ -75,20 +75,6 @@ function ListImpl( } } - // TODO: This doesn't work when refreshing is true. Is it supposed to?' - let refreshControl - if (refreshing !== undefined || onRefresh !== undefined) { - refreshControl = ( - - ) - } - if (headerOffset != null) { style = addStyle(style, { paddingTop: headerOffset, @@ -146,7 +132,6 @@ function ListImpl( desktopFixedHeight ? styles.minHeightViewport : null, pal.border, ]}> - {refreshControl} {header} {(data as Array).map((item, index) => (