-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define a minimum header hight #5
Comments
Hi @kiwina can you share some code or a screenshot? |
Hi @PentamapRainer you can render the toolbar above the I have a setup like this where I'm using a |
When I try to render the toolbar above the
So where do I have to render the NavigationBar above the |
Did you try |
Thanks a lot! That worked:
|
@PentamapRainer If I got your question right, you can interpolate the opacity of the "bar", to do so, you can use the animated value coming from the CollapsibleTabView and interpolate it between 0 and the header height to get the opacity, something like const backgroundOpacity = scrollYPosition.interpolate({
inputRange: [0, scrollSize],
outputRange: [0, 1],
extrapolate: 'clamp',
}); |
@PedroBern Is it possible to configure a minimum header height with the v3 version? While the approach of placing the component outside the Collapsible tab view component is an easy and simple approach, if you need to place the content with an absolute position on the header(something similar to the previous image on the comments), it becomes really hard to come with a solution since the absolute position removes the component from the screen flow and its size is not taken into consideration. |
@tcorreiaubi no, it's still not possible in v3, I know, this desired configuration is probably hard to get with the current implementation, but it's open for PR. |
Hi, love this plugin well written.
I'm trying to make a header with several animated objects in it that fade out but some will stay. So far i have not figured out where the final offset is calculated to keep some of the header without closing it compleately
The text was updated successfully, but these errors were encountered: