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

Creates very large container for cards on browser #344

Open
fnandoz21 opened this issue Jan 20, 2021 · 1 comment
Open

Creates very large container for cards on browser #344

fnandoz21 opened this issue Jan 20, 2021 · 1 comment

Comments

@fnandoz21
Copy link

Using Expo for Web, I am able to run my React Native app on my browser. When I use this package, however, the browser version of my app results in a very large window that allows me to scroll to the right. I found that this is due to each card having some strange underlying container that is incredibly large and scales with the size of the display. For example, I set the cards to dimensions of 300x300 and this underlying container that causes the page to be very large has dimensions of 1284x698. If someone could help me learn how to edit this underlying container's dimensions, that would be greatly appreciated. Thank you. I have attached screenshots to demonstrate what exactly is this container I am talking about.
card size
large hidden container

@webraptor
Copy link
Contributor

The react-native-deck-swiper is designed for native applications. It uses the full screen of the device to calculate card sizes and overlays so that's why you're experiencing such issues.

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

2 participants