react-native-swiper 让人无语的坑
来源:互联网 发布:通达信独立交易软件 编辑:程序博客网 时间:2024/06/11 17:15
下面这段代码出现问题,百思不得其解, 刚开始以为是swiper不支持数组形式,一顿测试
<Swiper style={styles.wrapper} showsButtons> { [<View style={styles.slide1}> <Text style={styles.text}>Hello Swiper</Text> </View>,<View style={styles.slide2}> <Text style={styles.text}>Beautiful</Text> </View>].map((value)=> { return value; }) } <View style={styles.slide1}> <Text style={styles.text}>Hello Swiper</Text> </View> </Swiper>
后来发现是 你里面需要数组 就不能再定义其他的 ,去掉 改成下面代码则好使
<Swiper style={styles.wrapper} showsButtons> { [<View style={styles.slide1}> <Text style={styles.text}>Hello Swiper</Text> </View>,<View style={styles.slide2}> <Text style={styles.text}>Beautiful</Text> </View>].map((value)=> { return value; }) } </Swiper>
阅读全文
0 0
- react-native-swiper 让人无语的坑
- 基于react-native-swiper 封装的bannerView
- React-Native-swiper React Native 轮播类组件
- React Native 如何做轮播图 react-native-swiper
- react-native-swiper 轮播类组件
- react-native-scrollable-tab-view 嵌套react-native-swiper 引发的 bug
- React-Native学习--轮播图第三方组件-react-native-swiper
- React-Native学习--轮播图第三方组件-react-native-swiper
- react-native 轮播图 ——react-native-swiper使用
- react-native react-native-swiper 设置horizontal=false无效
- react-native使用Swiper在安卓上不显示
- 【React Native 安卓开发】----第三方框架的引用之React-native-Swiper框架实现欢迎页【第五篇】
- react-native的坑
- react native 的坑
- ListView的头部添加react-native-swiper不显示的问题
- react-native-swiper在滚动视图中默认不显示图片的问题
- React-Native的那些坑
- react-native动画的坑
- java实现emqtt的消息发布
- httpclient
- HDOJ1405 The Last Practice(有坑)
- 2. 什么是对象
- G盘显示拒绝访问要如何办啊
- react-native-swiper 让人无语的坑
- 虚拟网卡 tun/tap口创建及介绍
- 郁闷的出纳员
- the mathtype dll cannot be found word2010(word2013类似)
- Python--模块之optparse
- 后缀数组
- 数据挖掘
- 安卓图表hellochart
- poj 1308