bamlab / react-native-image-header-scroll-view

ScrollView with an image in header which becomes a navbar
MIT License
997 stars 99 forks source link

Make renderForeground scrollable #79

Open dnlmzw opened 4 years ago

dnlmzw commented 4 years ago

When using renderForeground Is there any prop you can set to enable scrolling the view, when dragging the header? Right now my header is 90% of the screen, and only having the bottom 10% scrollable is not ideal.

alxmrtnz commented 4 years ago

@dnlmzw any luck figuring out a solution? I'm looking to do the same thing.

aakagi commented 4 years ago

I ended up adding my Foreground to the children, and set style={{ marginTop: -1 * maxHeight }} and it works perfectly if you don't need your content to scale.

dnlmzw commented 4 years ago

I initially implemented @aakagi 's solution. It seems to works on iOS, but Android seems to crops the content.