Skip to content
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

Make renderForeground scrollable #79

Open
dnlmzw opened this issue Jan 22, 2020 · 3 comments
Open

Make renderForeground scrollable #79

dnlmzw opened this issue Jan 22, 2020 · 3 comments

Comments

@dnlmzw
Copy link

dnlmzw commented Jan 22, 2020

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
Copy link

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

@aakagi
Copy link

aakagi commented Aug 8, 2020

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
Copy link
Author

dnlmzw commented Oct 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants