hongkouHenk / flatlist-intro-animations

A custom FlatList component that offers 5 types of item intro animations
31 stars 10 forks source link

ListEmptyComponent not working #1

Open v-x2 opened 3 years ago

v-x2 commented 3 years ago

Hi,

I've noticed that the ListEmptyComponent prop of AnimatedList isn't working although the documentation says the opposite.

<AnimatedFlatList
                            data={items}
                            renderItem={renderItem}
                            animationType={AnimationType.Fade}
                            animationDuration={300}
                            keyExtractor={(item) => item.id}
                            onEndReached={loadMoreItems}
                            onRefresh={refreshItems}
                            refreshing={isRefreshing}
                            ListEmptyComponent={NoCosts}
                        />

If I replace the AnimatedFlatList with FlatList it just works. What am I doing wrong?

Thanks you

hongkouHenk commented 3 years ago

I need a few days but plan to look into this issue coming weekend. Thanks for reporting.

hongkouHenk commented 3 years ago

Apologies for this delayed reply. When I run the Example project and install the latest version of this package, I am in fact getting the EmptyListComponent to show up with the Fade animation. Could you check if you're running the last version (which would be 1.3.4)?