react-native react-native-swiper 设置horizontal=false无效
来源:互联网 发布:mysql against ngram 编辑:程序博客网 时间:2024/05/22 04:52
react-native react-native-swiper 设置horizontal=false后界面依然横向滑动,
主要是对布局进行了旋转操作
export default class TestSwiper extends Component { render(){ return ( <View style={styles.containerStyle}> <Swiper showsPagination={false} autoplay > <Text style={[{backgroundColor:"#f0f"},styles.pageStyle]}>界面1</Text> <Text style={[{backgroundColor:"#ff0"},styles.pageStyle]}>界面2</Text> <Text style={[{backgroundColor:"#00f"},styles.pageStyle]}>界面3</Text> </Swiper> </View> ) }}const styles=StyleSheet.create({ containerStyle:{ backgroundColor:"#000", //旋转90度 transform:[{rotate: "90deg"}], height:100, width:100, }, pageStyle:{ height:100, width:100, //旋转-90度 transform:[{rotate: "-90deg"}] }})
阅读全文
0 0
- react-native react-native-swiper 设置horizontal=false无效
- React-Native-swiper React Native 轮播类组件
- React Native 如何做轮播图 react-native-swiper
- react-native-swiper 轮播类组件
- React-Native学习--轮播图第三方组件-react-native-swiper
- React-Native学习--轮播图第三方组件-react-native-swiper
- react-native 轮播图 ——react-native-swiper使用
- 【React Native】React Native元素样式设置
- react-native使用Swiper在安卓上不显示
- 基于react-native-swiper 封装的bannerView
- react-native-swiper 让人无语的坑
- react native
- React Native
- React Native
- React- Native
- react-native
- React Native
- React Native
- 使用百度API实现实时公交站点查询及列表显示
- js改变css样式的三种方法
- --save和--save-dev
- python scrapy爬取微信公众号文章的爬虫
- Effective Jave 创建和销毁对象 7.避免使用终结方法
- react-native react-native-swiper 设置horizontal=false无效
- SPI总线协议及SPI时序图详解
- 为AWS EC2配置公网IP (Elastic IP)
- JAVA设计模式之适配器模式
- 网络爬虫反爬技术
- Linux清理内存
- Spring 事物机制总结
- 将nuget与VS直接集成,实现一键上传等功能
- 数据产品必须了解的分布式存储系统-Hbase