-
Notifications
You must be signed in to change notification settings - Fork 93
Reduce scroll amount to quickly collapse extra header #64
Comments
Hi, @paolospag Thanks for your suggestion. |
Hi @benevbright, I think it's better that you do it because you know your module and you know what's right to do ;) |
Hi @benevbright, But I still have a couple of things to ask you. First, how can I use/set custom safeBounceHeight? However, I have not yet solved my problem. You can reproduce my situation setting data loop cycle to 15 in yours example. |
You can use it like this at App start.
I got that you have multiple Flatlist that has different length of content. And it will be tricky though that we make it have each threshold. |
Sorry, I probably did not explain it well. With short FlatList happens that the extra header does not completely collapse when scroll down. In my case, extra header has I can try to reproduce this in a Snack if necessary. |
Ok, I got that now. |
Oh, sure, but I think it isn't best solution. In my opinion, if the header automatically collapses after a certain amount of scroll avoid users to force scroll down even if FlatList scroll height is minor that device height and I think scrollbar would disappear, while with the padding it would remain. |
Probably I can achieve this provinding custom method into |
Hi @benevbright , Sorry for the bad quality of the GIF. Do you think it could be possible to do that? |
Hi, @paolospag And the thing you mentioned is the same as this one. #16 |
Hi @benevbright , |
@paolospag could you please give an example of how could i use collapse header with tabs ? just like the gif above |
Hello,
first of all, @benevbright congratulations for the great work done so far!
My issue is not about problem or bug, but it is a possible enhancement.
I want to reduce the scroll amount and then reduce the time I wait for collapse extra header.
I tried to find a way to achieve this looking at the file
index.js
and I found this at line 35:const safeBounceHeight = Platform.select({ios: 300, android: 100, web: 200});
For example, if I set
safeBounceHeight = 0
I get the desired result, also because in myAnimatedFlatList
I putbounces={false}
.Suggestion
It could be an idea to have a param to set up in
collapsibleParams
for a customsafeBounceHeight
value or any other param that help to reduce scroll amount and quickly collapse custom extra header.The text was updated successfully, but these errors were encountered: