04 2017 档案

reactnative state更新问题
摘要:官网说明: setState() enqueues changes to the component state and tells React that this component and its children need to be re-rendered with the updated 阅读全文

posted @ 2017-04-28 14:59 Aoooo 阅读(233) 评论(0) 推荐(0)

react-native navigation中TapNavigator与StackNavigator混用
摘要:TapNavigator只能定义切换菜单的导航,如果需要与StackNavigator混用,将需要将TapNavigator定义的路由作为StackNavigator其中一个路由。另外,如果在TapNavigator定义的几个Screen中包含有其他导航跳转,也要在TapNavigator场景中通过 阅读全文

posted @ 2017-04-24 14:05 Aoooo 阅读(324) 评论(0) 推荐(0)

z-index属性
摘要:属性值为absolute对象的z-index属性可以设置层叠显示的次序,它是直接有效的 而设置为relative对象的z-index属性则要按照以下规则设置 参与规则: z-index 属性仅在节点的 position 属性为 relative, absolute 或者 fixed 时生效. 默认值 阅读全文

posted @ 2017-04-20 14:19 Aoooo 阅读(405) 评论(0) 推荐(0)

position属性
摘要:1. relative 我们可以这样理解,如果不设置relative属性,sub1的位置按照正常的文档流,它应该处于某个位置。但当设置sub1为的position为relative后,将根据top,right,bottom,left的值按照它理应所在的位置进行偏移,relative的“相对的”意思也 阅读全文

posted @ 2017-04-20 14:06 Aoooo 阅读(159) 评论(0) 推荐(0)

reactnative图片排列
摘要:图片的resizeMethod='resize'可以自动压缩图片,一般resizeMode用contain, 图片的高度需要动态计算: <Image key={index} source={{uri: number.content}} resizeMethod='auto' resizeMode=' 阅读全文

posted @ 2017-04-20 14:05 Aoooo 阅读(152) 评论(0) 推荐(0)

导航