关于React Native ViewPager问题
来源:互联网 发布:php中split函数用法 编辑:程序博客网 时间:2024/05/16 12:14
1.ViewPager使用非常卡顿问题:
我的代码中出现如此问题是因为我的布局中同时出现了两个渲染的页面。从而使得ViewPager使用起来非常卡顿。
2.去掉ViewPager下方的指示栏(小圆点):
2.1:打开ViewPager.js
2.2:找到render()。移到render类的最后,然后更改代码
更改前代码:
{{/* 以下是原始小圆点代码。 将pageCount和scrollOffset设置为0后可以隐藏小圆点的显示--> pageCount: pageIDs.length, activePage: this.state.currentPage, scrollValue: this.state.scrollValue, scrollOffset: this.childIndex,*/}
更改后代码:
{this.renderPageIndicator({goToPage: this.goToPage, pageCount: 0, activePage: this.state.currentPage, scrollValue: this.state.scrollValue, scrollOffset: 0, })}
暂时的话我就用的这个方法。然后使用的是时候也没有问题。
阅读全文
0 0
- 关于React Native ViewPager问题
- react native viewpager 使用问题
- react-native-viewpager踩坑记
- 关于react-native
- react native遇到问题
- react-native 问题总结
- React Native问题总结
- react-native问题
- React native 问题总结
- React Native 问题小结
- React-native 问题汇总
- react-native问题贴
- React Native 问题汇总
- react native 问题记录
- React Native 注释问题
- React-Native 问题集
- React Native遇到问题
- React-native 问题集锦
- MyBatis的一级缓存
- 记录我的hadoop学习历程1--hadoop 单节点环境搭建
- java面向对象知识点总结
- restful风格使用小例
- 云框架发布KONG API Gateway主题,开源求助攻~
- 关于React Native ViewPager问题
- lingo使用
- 计算机方面的顶级会议
- FFmpeg长时间无响应的解决方法
- SOUI界面库 第2讲- 基本应用程序框架代码解读
- 发送短信
- JAVA设计模式初探之桥接模式
- MyBatis——关联操作
- 【PKUSC2017】我是一条咸鱼