alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creates very large container for cards on browser

fnandoz21 opened this issue · comments

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

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.