-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Landscape mode #36
Comments
+1 afaik it does not support landscape? |
Looks related to #16 |
Any suggestions for making react-native-swiper work in landscape mode? Thanks for a great component! |
Any news on this ? |
+1 |
+1 too. It works on first load, but dimensions do not update upon rotating device. Even when manually updating Swiper width after device rotation, it doesn't actually update. |
+1 |
+1 too. I've tried so many ways to force the update after device rotation, like invert width and height, but it's not a good practice at all. Someone did find a decent solution ? |
The problem is that Swiper gets windows dimensions one time on execute rather than on render, but I've worked around this by getting window dimensions in my render function and passing those values to the render () {
const { width, height } = Dimensions.get('window')
return (
<Swiper width={width} height={height}>
...
</Swiper>
)
} When the window dimensions change, Swiper's |
@timmywil Yup Though ultimately I don't think Swiper even has a reason to try using the window dimensions to fill the page. It makes much more sense to use |
Seems this broke again when I updated react-native to 0.46.2. |
@timmywil Does this properly change orientation to landscape now? I've been unable to get that working so far. |
Is it working now ? |
Great module! Any pointers on how to get it working when changing the device orientation to landscape?
The text was updated successfully, but these errors were encountered: