之前我们学习了可触摸组件和页面导航的使用的使用:
从零学React Native之09可触摸组件
…
从零学React Native之03页面导航
…经过之前的学习, 我们可以完成一个自定义导航栏了, 效果如下:
我们需要创建一个 NaviBar.js 用来显示顶部的导航栏, 还需要四个界面(Page1.js,Page2.js,Page3.js,Page4.js)。 当然还需要修改ind...
分类:
其他好文 时间:
2016-08-15 20:52:30
阅读次数:
958
安装JDK
从Java官网下载JDK并安装。请注意选择x86还是x64版本。
推荐将JDK的bin目录加入系统PATH环境变量。
安装Android SDK
可以单独安装Android SDK,也可以通过Eclipse ADT或者Android Studio一并安装。推荐使用Android Studio,以下说明会默认以Android Studio的方式说明。请注意选择x8...
分类:
移动开发 时间:
2016-08-15 19:12:40
阅读次数:
195
效果演示图: 参考案例:http://www.lcode.org/%E3%80%90react-native%E5%BC%80%E5%8F%91%E3%80%91react-native%E6%8E%A7%E4%BB%B6%E4%B9%8Brefreshcontrol%E7%BB%84%E4%BB% ...
分类:
其他好文 时间:
2016-08-15 12:50:13
阅读次数:
294
When you are using React components you need to be able to access specific references to individual components. This is done by defining a ref. Notice ...
分类:
数据库 时间:
2016-08-15 06:39:53
阅读次数:
178
The owner-ownee relationship is used to designate a parent-child relationship with React components as it differs from the DOM relationship. ...
分类:
其他好文 时间:
2016-08-15 06:39:46
阅读次数:
128
When you're building your React components, you'll probably want to access child properties of the markup. In Angular, it is transcludion: In React, i ...
分类:
数据库 时间:
2016-08-15 06:39:45
阅读次数:
161
State is used for properties on a component that will change, versus static properties that are passed in. This lesson will introduce you to taking in ...
分类:
其他好文 时间:
2016-08-15 06:39:21
阅读次数:
120
This lesson will teach you the basics of setting properties in your React components. ...
分类:
其他好文 时间:
2016-08-14 07:56:03
阅读次数:
129
In this lesson we'll setup a simple build process for converting our ES6 React components into ES5 using Babel and Webpack Install: Create files: Webp ...
分类:
其他好文 时间:
2016-08-14 07:53:15
阅读次数:
102
开发过程中, 几乎每个项目都会用到图片.
RN就是通过Image组件显示图片。既可以加载网络图片,也可以加载本地资源图片。
Image组件必须在样式中声明图片的款和高。如果没有声明,则图片将不会被呈现在界面上。网络图片加载加载网络图片非常简单, 直接上代码:
修改index.ios.js或者inde.android.jsimport React, { Component } from 'rea...
分类:
其他好文 时间:
2016-08-13 11:32:06
阅读次数:
367