![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
you种放学别跑
这个作者很懒,什么都没留下…
展开
-
createStackNavigator()has been moved to react-navigation-stack
由于React Navigation 更新,createBottomTabNavigator,createStackNavigator无法继续在react-navigation直接引入,而是需要在新的包react-navigation-tabs和react-navigation-stack里引入,基本语法暂未发现变化;旧版写法:新版写法:改成新版写法就可以了,正常来说这样...原创 2020-01-14 20:25:37 · 2872 阅读 · 0 评论 -
react-native-gesture-handler 程序包不存在
导入react-native-gesture-handler一直运行不起来 运行报错Pools程序包不存在 是因为版本的问题 把版本降到1.2.0就可以了npm install react-native-gesture-handler@1.2.0...原创 2020-01-14 19:45:42 · 1978 阅读 · 2 评论 -
React元素居中
在父级样式增加 justifyContent: 'center' 使子控件垂直居中在 要居中的View样式增加 textAlign: 'center' 使该控件水平居中原创 2019-12-27 16:00:50 · 10269 阅读 · 1 评论 -
react bind 传参
为了搞清楚这个传参 我专门多加几个参数测试了一下如下代码,bind()方法 除了this我另外传了三个参数render: (_, item) => (<Switch defaultChecked={item.status === 0} onChange={this.changeStatus.bind(this, "aaa", "bbb",item.status)} />...原创 2019-05-12 12:13:06 · 717 阅读 · 0 评论 -
This is probably not a problem with npm. There is likely additional logging output above
This is probably not a problem with npm. There is likely additional logging output above这个错误是因为删掉某个类后 他的引用未删除 全局搜索删掉它即可原创 2019-07-18 10:14:27 · 729 阅读 · 0 评论