GetStream / react-native-bidirectional-infinite-scroll

📜 React Native - Bidirectional Infinite Smooth Scroll
https://getstream.github.io/react-native-bidirectional-infinite-scroll/
MIT License
236 stars 27 forks source link

ListHeaderComponent not working #40

Open luco opened 1 year ago

luco commented 1 year ago

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}
                />
rkstar commented 12 months ago

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