React Native Points

2016-06-02  本文已影响0人  Cocsmile

Why bind()?

ES5 Vs ES6

mixins的使用

minxins

require()用法

require最常用的方法
require('http') 内置模块
require('./server')  “./”表示当前路径,后面跟的是相对路径
require("../lib/server") ../表示上一级目录,后面跟的也是相对路径

atom技巧

CMD+SHIFT+P  Toggle command palette
CMD+\        Toggle tree-view sidebar
CMD+SHIFT+F  Find in project
CMD+P        Toggle file finder
CMD+R        Go to symbol
ctrl-alt-b   安装atom-beautify后可使用,格式化代码

异步数据流

redux-thunk,redux-promise
A thunk is a function that wraps an expression to delay its evaluation.

Jenkins 环境配置

Node.js

npm install

rnpm

npm i -g rnpm

CODE PUSH

Install the CodePush CLI

npm install -g code-push-cli

Create a CodePush account

code-push register

Register your app with the service

code-push app add MyApp

CodePush-ify your app link

Release an app update

code-push release-react MyApp ios.

Run your app

查看key

code-push deployment ls <appName> -k
上一篇下一篇

猜你喜欢

热点阅读