zachgibson / react-native-parallax-swiper

Paged Parallax Swiper with Effects
MIT License
623 stars 76 forks source link

Screen orientation half swipe #31

Closed gds3k3 closed 5 years ago

gds3k3 commented 6 years ago

Hello, great component! Many thanks!

I have a little problem when screen orientation changes. Swipe page appears half swiped. This happens when screen orientation changes and the current swipe page is some of middle pages, first and last pages shows correctly.

I changed pages order, to test whether the problem is on some particular content, but same result.

Thanks again.

umerbaig commented 5 years ago

same issue happing with me

zachgibson commented 5 years ago

Hey @gds3k3 and @umerbaig 👋

I haven’t done any work to support landscape orientation so I’m not surprised to hear this. The widths are set initially so the ScrollView knows when to snap, e.g. every 300px, this feature enables the divider views. So the width would need to update on orientation change.

zachgibson commented 5 years ago

Closing in favor of #32.