React Native
Honaf_Wu
勤学似春起之苗,不见其增,日有所长;辍学如磨刀之石,不见其损,日有所亏!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
React生命周期
React生命周期原创 2015-11-26 13:15:14 · 2207 阅读 · 2 评论 -
react native环境搭建
1. 安装HomeBrew(http://brew.sh/index_zh-cn.html)$ ruby -e “$(curl –fsSL https://raw.gihubusercontent.com/Homebrew/install/master/install)”2. 安装Node.js 3. 通过brew装watchman。我们推荐您安装watchman,否则您可能在点击一个原创 2015-11-12 23:23:21 · 670 阅读 · 1 评论 -
react native viewpager 使用问题
在react native后续版本viewpager使用过程会出现require找不到的问题,可以这样解决 ViewPager.json中修改为var StaticRenderer = require('react-native/Libraries/Components/StaticRenderer');ViewPagerDataSource.json中修改为var invariant = req原创 2015-11-27 10:51:00 · 2952 阅读 · 1 评论 -
react native 引入module的两种方式
react native 引入module的两种方式原创 2015-11-27 10:47:37 · 1879 阅读 · 0 评论 -
react native常用modules
react native常用modulesReact Native TabBar Navigator (iOS only) react-native-viewpager原创 2015-11-27 10:42:14 · 673 阅读 · 0 评论 -
react native声明组件的两种方式
react native声明组件的两种方式,其中componentWillMount和construtor的作用是一样,都是渲染页面之前做一些业务逻辑。方式一:原创 2015-11-27 10:25:47 · 971 阅读 · 0 评论 -
js中(!exp)
var exp = null;if (!exp && typeof exp != "undefined" && exp != 0){ alert("is null");}typeof exp != "undefined" 排除了 undefined;exp != 0 排除了数字零和 false。 更简单的正确的方法: var exp = null;转载 2015-11-12 23:20:16 · 837 阅读 · 0 评论 -
react native app离线打包准备
Android新增main.jsbundle文件首先在浏览器打开http://localhost:8081/index.ios.bundle?platform=android&dev=false(根据自己项目及平台来),然后将自己创建一个文件main.jsbundle来保存此网址返回的代码,最后放到Android的assets目录中新增写文件代码 private static final Strin原创 2016-01-19 16:11:21 · 3452 阅读 · 2 评论
分享