摘要: <ScrollView style={{flex:1}} //showsVerticalScrollIndicator={false} // ref={(r) => this.scrollview = r} ref={c => this._scrollview = c} scrollsToEnd={ 阅读全文
posted @ 2020-11-18 10:55 樱花飞落ll 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 父组件 import AddMaterial from '../components/AddMaterial'--子组件 父组件调用子组件方法 let materialInfo = this.AddMaterial._getMaterial() render方法 <AddMaterial onRef 阅读全文
posted @ 2020-11-03 10:15 樱花飞落ll 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 因为checkbox是动态生成的,是react-native-table-component组件里面的一个元素,如果我只改变checkbox的state 不会生效,要改变整个table的state才可以 let aaa = []; const index2 = index + 1; aaa.push 阅读全文
posted @ 2020-03-01 21:24 樱花飞落ll 阅读(1576) 评论(0) 推荐(0) 编辑
摘要: this.props.navigation.dispatch(NavigationActions.navigate({ routeName: 'SearchOrder' })) 为了解决我之前写的报错this.props.dispatch is undefined this.props.dispat 阅读全文
posted @ 2020-02-15 16:25 樱花飞落ll 阅读(868) 评论(0) 推荐(0) 编辑
摘要: 不知道为什么深拷贝之后原来的值还是会发生变化,用了一下方法赋值解决 let temp = JSON.parse(JSON.stringify(nextProps.soProcessModel.returnEquipInfo)); let temp = JSON.parse(JSON.stringif 阅读全文
posted @ 2020-01-16 14:24 樱花飞落ll 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 使用react native 的list组件时,第一次数据不显示,需要上下滑动一下才显示,加上下面的removeClippedSubviews = {false}即可 阅读全文
posted @ 2020-01-14 10:23 樱花飞落ll 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 问题:明明后缀是.java文件,但是在idea中被识别为文本,不能高亮显示语法 解决方法: 不知道什么时候设置了text里面的显示 file-settings-Editor-File Types-Text 将下图中的TaskRequest.java删掉就好了 就这么个奇葩问题浪费我半天的时间,心累 阅读全文
posted @ 2019-08-19 17:36 樱花飞落ll 阅读(1042) 评论(0) 推荐(0) 编辑
摘要: 1.让input框不可编辑,记得是readOnly不是readonly才有效 2.render里面用switchcase <div> {(() => { switch (this.state.widgetName) { case 'singleText': case 'multipleText': 阅读全文
posted @ 2019-03-18 15:40 樱花飞落ll 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1.运用脚手架create-react-app npm install create-react-app -g create-react-app my-project 查看package.json文件:cat package.json 2.jsx <h1>Hello React</h1> 被编译为R 阅读全文
posted @ 2019-03-04 22:31 樱花飞落ll 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 原文地址:https://juejin.im/post/5bb089e86fb9a05cd84935d0 webpack4.0 入门篇 - 构建前端开发的基本环境 什么是 webpack webpack 可以看做是模块打包机:他做的事情是,分析你的项目结构,找到 JavaScript 模块以及其他的 阅读全文
posted @ 2019-01-15 13:36 樱花飞落ll 阅读(315) 评论(0) 推荐(0) 编辑