上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
  2017年1月6日
摘要: react-native看到了给现有工程添加react-native环境的时候碰到一个问题: 如何往工程中添加 package.json文件,以及node_modules是怎么来的? 我开始的时候以为是自己创建的文件夹,package.json文件也是通过vim来写的。 但是就在写package.j 阅读全文
posted @ 2017-01-06 11:54 码农时刻 阅读(228) 评论(0) 推荐(0) 编辑
  2017年1月5日
摘要: 这是我看到的比较全而且讲的很好的文章 https://www.raywenderlich.com/62796/reactivecocoa-tutorial-pt1 https://www.raywenderlich.com/62796/reactivecocoa-tutorial-pt2 阅读全文
posted @ 2017-01-05 13:09 码农时刻 阅读(176) 评论(0) 推荐(0) 编辑
  2017年1月3日
摘要: FlexBox 是React Native布局的一种算法,目的是为了适配不同尺寸的屏幕而设计的。 使用时最关键的就是flex关键字的用法。 flex用于修饰当前View在父视图中的占比。 占比如何计算:(flex 为浮点数) 1、当flex <= 0时 flex是无效的。此时视图不会被显示出来 2、 阅读全文
posted @ 2017-01-03 16:11 码农时刻 阅读(192) 评论(0) 推荐(0) 编辑
  2017年1月2日
摘要: 今天又敲了一丁点代码,看了一下props和state的用法 原本以为state只是一个状态,但是又阅读了一下原文,才知道state是一组状态,这些状态是开发者自己定义的,都统一在state这个大类底下,跟props一样都是 this.props.propertyName this.state.sta 阅读全文
posted @ 2017-01-02 22:47 码农时刻 阅读(183) 评论(0) 推荐(0) 编辑
  2016年12月30日
摘要: 注:默认值如何设置 http://www.tuicool.com/articles/uMfYv2q 阅读全文
posted @ 2016-12-30 16:35 码农时刻 阅读(98) 评论(0) 推荐(0) 编辑
摘要: React Native class 后面的命名首字母需要大写 否则会报Expeted a component class,got [object Object]. 阅读全文
posted @ 2016-12-30 15:52 码农时刻 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 我在使用props时候, 我的写法是这样的 ... <View> <Person name='john' age=32 gender=true></Person> </View> ... class Person Extension Component{ render(){ <View> 阅读全文
posted @ 2016-12-30 15:23 码农时刻 阅读(347) 评论(0) 推荐(0) 编辑
  2016年12月28日
摘要: ReactiveCocoa支持两种订阅方式,一种是冷订阅,一种是热订阅。 热订阅的特点: 1、不管有没有消息订阅着,发送者总会把消息发出去。 2、不管订阅者是什么时候订阅的,发送者总是会把相同的消息发给所有订阅者 冷订阅的特点: 跟热订阅的相反。冷订阅只会给订阅者发送一次消息,冷订阅使用的流(str 阅读全文
posted @ 2016-12-28 11:27 码农时刻 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 原文解释在这里http://cocoadocs.org/docsets/ReactiveCocoa/0.6.0/ 在标题Creating hot subscribables 底下 先贴原文: The easiest way to create hot subscribables is by usin 阅读全文
posted @ 2016-12-28 10:00 码农时刻 阅读(380) 评论(0) 推荐(0) 编辑
  2016年12月27日
摘要: 今天在写关于textView的数据绑定时原先写法是这样的: 1、 RACChannelTo(self,textView.text) = RACChannelTo(self,model.text); 2、 我在运行的时候看到log并未发现我的model.text随着键盘输入的内容改变而发生变化。但是我 阅读全文
posted @ 2016-12-27 15:37 码农时刻 阅读(5703) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页