react-native-bidirectional-infinite-scroll icon indicating copy to clipboard operation
react-native-bidirectional-infinite-scroll copied to clipboard

ListHeaderComponent not working

Open luco opened this issue 3 years ago • 1 comments

Hey,

I'm trying to use the ListHeaderComponent, but it's not working. It's working fine with RN native FlatList:

				<FlatList
					ListHeaderComponent={() => {
						return <UsersStatuses />
					}}
					ref={flatList}
					data={data.FollowingPosts.posts}
					keyExtractor={item => item._id}
					renderItem={({ item }) => <Post data={item} />}
					onStartReached={loadNewPosts}
					onEndReached={loadPreviousPosts}
					onStartReachedThreshold={0.2}
					onEndReachedThreshold={0.2}
					enableAutoscrollToTop={false}
				/>

luco avatar Dec 23 '22 17:12 luco

@luco you need to add showDefaultLoadingIndicators={false} in order to see the ListHeaderComponent or ListFooterComponent

rkstar avatar Jul 04 '23 15:07 rkstar