i6mi6 / react-native-parallax-scroll-view

A ScrollView-like component with parallax and sticky header support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make the sticky header appear when scrollview pass certain point

kirhim opened this issue · comments

I love this library!

This is exactly what I was looking for :)

I am just wondering if I could make the sticky header appear when I scroll the view to a certain point.

Right now the sticky header starts to appear immediately when scrolling to the top. But don't want the sticky header to appear right away. I want it to appear when I scroll up to a certain point.

Could this be done?

@kirhim Just put your content in renderForeground of everything before parallax effect. Put everything that you want to appear after the effect as children.

hey @anthonyk1225 can you supply an example?

i'm also interested in this.

https://gist.github.com/anthonyk1225/1e9f4949050cdd2fdd7762189da1d63e

The header won't appear, until you start to scroll past what is in renderForeground.

did you find a solution?