当前位置: 首页 > news >正文

广州建站快车建站前端模板

广州建站快车,建站前端模板,直播app软件开发定制,网页制作的超文本标记语言称为接上一篇#xff0c;ReactNative项目升级#xff0c;0.61到0.72的升级问题。 在升级过程中#xff0c;发现react-native-scrollable-tab-view这个tab插件#xff0c;这是一个tab导航栏插件#xff0c;可以实现切换页面、页面滚动、下拉刷新、上拉加载更多等#xff0c;功…接上一篇ReactNative项目升级0.61到0.72的升级问题。 在升级过程中发现react-native-scrollable-tab-view这个tab插件这是一个tab导航栏插件可以实现切换页面、页面滚动、下拉刷新、上拉加载更多等功能还是很强大的只是官方的版本已经很久没更新了无法兼容react-native0.72但一时又找不到更好的插件代替只能先试着改下源码兼容下新版本。还好在github上已经有人提出解决方案了找出问题代码改一下就好了。 四、tab插件react-native-scrollable-tab-view 由于GitHub上已经做了部分兼容修改故更改package.json中的依赖地址“react-native-scrollable-tab-view”: “https://github.com/ptomasroos/react-native-scrollable-tab-view”,并修改部分源码 //ScrollableTabBar.js找到ref{tabContainer}并注释掉 Viewstyle{[styles.tabs, {width: this.state._containerWidth, }, this.props.tabsContainerStyle, ]}// ref{tabContainer}onLayout{this.onTabContainerLayout}{this.props.tabs.map((name, page) {const isTabActive this.props.activeTab page;const renderTab this.props.renderTab || this.renderTab;return renderTab(name, page, isTabActive, this.props.goToPage, this.measureTab.bind(this, page));})}Animated.View style{[tabUnderlineStyle, dynamicTabUnderline, this.props.underlineStyle, ]} / /View//ViewPager.js修改VIEW_PAGER_REF相关的两处ref{VIEW_PAGER_REF}和this.$refs[VIEW_PAGER_REF].getInnerViewNode()getInnerViewNode (): ReactComponent {return this.pageView.getInnerViewNode(); }; render() {return (NativeViewPager{...this.props}ref{pageView (this.pageView pageView)}style{this.props.style}onPageScroll{this._onPageScroll}onPageScrollStateChanged{this._onPageScrollStateChanged}onPageSelected{this._onPageSelected}onMoveShouldSetResponderCapture{this._onMoveShouldSetResponderCapture}children{childrenWithOverriddenStyle(this.props.children)}/);}//DefaultTabBar.js、index.js、ScrollableTabBar.js //找出下面的这个引用 const { ViewPropTypes } ReactNative require(react-native); //改成如下引用 const ReactNative require(react-native); const DeprecatedPropTypes require(deprecated-react-native-prop-types); //将页面中用到ViewPropTypes的改为DeprecatedPropTypes相关/*** DefaultTabBar.js ***/ propTypes: {goToPage: PropTypes.func,activeTab: PropTypes.number,tabs: PropTypes.array,backgroundColor: PropTypes.string,activeTextColor: PropTypes.string,inactiveTextColor: PropTypes.string,textStyle: DeprecatedPropTypes.TextPropTypes.style,tabStyle: DeprecatedPropTypes.ViewPropTypes.style,renderTab: PropTypes.func,underlineStyle: DeprecatedPropTypes.ViewPropTypes.style,},/*** index.js ***/ propTypes: {tabBarPosition: PropTypes.oneOf([top, bottom, overlayTop, overlayBottom, ]),initialPage: PropTypes.number,page: PropTypes.number,onChangeTab: PropTypes.func,onScroll: PropTypes.func,renderTabBar: PropTypes.any,tabBarUnderlineStyle: DeprecatedPropTypes.ViewPropTypes.style,tabBarBackgroundColor: PropTypes.string,tabBarActiveTextColor: PropTypes.string,tabBarInactiveTextColor: PropTypes.string,tabBarTextStyle: PropTypes.object,style: DeprecatedPropTypes.ViewPropTypes.style,contentProps: PropTypes.object,scrollWithoutAnimation: PropTypes.bool,locked: PropTypes.bool,prerenderingSiblingsNumber: PropTypes.number,},/*** ScrollableTabBar.js ***/ propTypes: {goToPage: PropTypes.func,activeTab: PropTypes.number,tabs: PropTypes.array,backgroundColor: PropTypes.string,activeTextColor: PropTypes.string,inactiveTextColor: PropTypes.string,scrollOffset: PropTypes.number,style: DeprecatedPropTypes.ViewPropTypes.style,tabStyle: DeprecatedPropTypes.ViewPropTypes.style,tabsContainerStyle: DeprecatedPropTypes.ViewPropTypes.style,textStyle: DeprecatedPropTypes.TextPropTypes.style,renderTab: PropTypes.func,underlineStyle: DeprecatedPropTypes.ViewPropTypes.style,onScroll: PropTypes.func,}
http://mrfarshtey.net/news/28618/

相关文章:

  • 江苏商城网站建设服务网站开发目标开题报告
  • 北京建设网站哪家好搭建网站的必须条件
  • 网站建设设计 飞沐装修网站平台有哪些
  • 竖导航网站wordpress 音频播放
  • 个人网站建设的收获wordpress立即发布
  • 有哪些做ppt网站wordpress cia易验证
  • 提供网站建设备案报价珠海手机网站建设推广公司
  • 保障性住房建设投资中心网站邢台市住房和城乡建设局网站
  • 网站建设以及推广销售客户怎么找贵阳网站开发方舟网络
  • 哪里学做网站建设工程管理专业
  • 网站收录查询临沂seo广州微信网站建设咨询
  • 重装wordpress图片不见了清远网站关键词优化
  • asp建站软件网络公司排名榜
  • 杭州鼎易科技做网站太坑seo网站架构
  • 四川旅游seo整站优化wordpress存储数据库文件
  • 网站小图标素材网站如何被收录情况
  • 自助建站平台网站做乘法表
  • 没网站怎么做二维码扫描连接详情页设计方法
  • 个人备案后可以做电影网站吗长宁专业做网站
  • 网站开发选什么职位啦啦啦中文免费视频高清观看
  • 淄博手机网站php网站发送邮件
  • 购物网站设计方案厦门网络科技有限公司
  • 做网站现在好弄么wordpress微信公众号
  • 网站框架一般用什么做做网站找哪个
  • 怎么创建网站文件夹沈阳商城网站开发
  • 巴楚网站建设网站的空间和域名
  • 网站建设宣传广告wordpress 英文 中文
  • 建个企业网站收费今天十堰头条新闻
  • 58网站建设58xiamen做美工需要参考的网站
  • 网站建设+备案什么意思哪些网站可以做代理