leecade / react-native-swiper

The best Swiper component for React Native.
MIT License
10.37k stars 2.35k forks source link

在竖直方向没有, horizontal = {false} 在android上无用 #810

Open longgegege opened 6 years ago

longgegege commented 6 years ago

Which OS ?

Version

Which versions are you using:

Expected behaviour

Actual behaviour

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

react-native-swiper@1.5.4 react-native": "0.46.0"

longgegege commented 6 years ago

react-native-swiper@1.5.4 react-native": "0.46.0"

panmin commented 6 years ago

the same problem in Android

itenl commented 6 years ago

use style={ transform:[{rotate: "-90deg"}] ... } to solve,

set container wrap style={ transform:[{rotate: "90deg"}] ... } set swiper-item style={ transform:[{rotate: "-90deg"}] ... }

star-heng commented 5 years ago

use style={ transform:[{rotate: "-90deg"}] ... } containerStyle={{transform: [{rotate: '180deg'}]}} set swiper-item style={ transform:[{rotate: "-90deg"}] ... } is true.

DavidKk commented 5 years ago

same problem only on android

longgegege commented 5 years ago

containerStyle={{transform: [{rotate: '90deg'}]}} set swiper-item style={ transform:[{rotate: "-90deg"}] ... }

Is this not more simple? Do you try to meet this requirement?

在2018年8月24日 18:07,star-hengnotifications@github.com 写道:

use style={ transform:[{rotate: "-90deg"}] ... } containerStyle={{transform: [{rotate: '180deg'}]}} set swiper-item style={ transform:[{rotate: "-90deg"}] ... } is true.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.