PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
815 stars 161 forks source link

How do i decrease empty space in flat list #349

Open jlee0810 opened 11 months ago

jlee0810 commented 11 months ago

image

There is too much white/empty space after the last item in the flatlist. Is there an option to change the size of this empty space?

sushantjadhav111 commented 11 months ago

@jlee0810 you can use flexbox property to position items in flatlist or use itemSeperatorComponent props in flatlist, I hope this will solve the problem.

ericlee0810 commented 11 months ago

I think the extra space is occuring because of the scroll offset between tabs not because of the styling of the flatlist.

Adil21 commented 10 months ago

The package uses minHeight property in its implementation. You can override it by passing contentContainerStyle={{ minHeight }} to the flatlist