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

View takes up the whole screen. #373

Open
aliraza96 opened this issue Nov 24, 2021 · 2 comments
Open

View takes up the whole screen. #373

aliraza96 opened this issue Nov 24, 2021 · 2 comments

Comments

@aliraza96
Copy link

View takes up the whole screen. Cannot remove the blue background from the screen. Can anyone help ?
And gestures also works on the whole screen. So anyway to limit it's height ?

@FatjonRrapaj
Copy link

FatjonRrapaj commented Mar 4, 2022

Hello, to remove the blue background just give the prop backgroundColor={"transparent"}
For the gesture that takes the whole screen you can give it a marginBottom= screen height, but that's a hack, I'm actually looking for a better solution

And to control it's height, use the prop containerStyle
Example:
<Swiper containerStyle={{ height: height / 2 + 60, {/* your desired height goes here,and don't forget to tweak the card height according to this* /} overflow: 'hidden', }} ...otherProps />

@devinhadley
Copy link

Hello, to remove the blue background just give the prop backgroundColor={"transparent"} For the gesture that takes the whole screen you can give it a marginBottom= screen height, but that's a hack, I'm actually looking for a better solution

And to control it's height, use the prop containerStyle Example: <Swiper containerStyle={{ height: height / 2 + 60, {/* your desired height goes here,and don't forget to tweak the card height according to this* /} overflow: 'hidden', }} ...otherProps />

You find a better solution to fixing the gesture handler taking up the whole screen?

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