alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
1.56k stars 465 forks source link

Creates very large container for cards on browser #344

Open fnandoz21 opened 3 years ago

fnandoz21 commented 3 years ago

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 commented 3 years ago

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.