ReactNative 学习记录(一)

2016-10-13 20:56:17 +08:00
 FAMI2U

最近的一些项目随着使用发现原来用 METEOR 等一些搭建,在体验和需求的平衡上很难再进行突破。之前一直在关注 reactnative 这个项目,借用十一的几天假期,也不出去了试试是否能带来一些新的惊喜。会把一些学习过程中的问题记录下来。 基础: NODEJS , METEOR 但是还未使用过 ReactJS 。 OK ,开始吧~ 根据以前的经验学习一个新的技术最快的方法:先找些视频教学!因为听着就可以了(我是特别不爱看书的人坏学生~~)。 之前 METEOR 的入门是看极客学院的一些视频,所以这次也一样,不过关于 reactnative 的教程只有两个系列 5 ~ 6 节课,要想能用估计还需要更多的资料。

##学习点一: ReactNative 怎么好。。。此处省略 1 万字,看大家各种样的评论都快看出茧子了,不在重复。

##学习点二:环境安装和搭建

➜  workspace brew install watchman
==> Installing dependencies for watchman: pcre
==> Installing watchman dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.37.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.37.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.37: 146 files, 5.9M
==> Installing watchman
==> Downloading https://homebrew.bintray.com/bottles/watchman-4.1.0.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring watchman-4.1.0.el_capitan.bottle.tar.gz
🍺  /usr/local/Cellar/watchman/4.1.0: 20 files, 316K
➜  workspace brew install flow
==> Downloading https://homebrew.bintray.com/bottles/flow-0.18.1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring flow-0.18.1.el_capitan.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/flow/0.18.1: 6 files, 5.8M

需要有 brew ,执行一下就知道是否安装,没安装可以参考官网。 node - 这个不说了 watchman -检测文件改变 flow - jsx 语法检测

下一步安装 ReactNative 的 CLI 工具

sudo cnpm install -g react-native-cli

创建 Hellow World

➜  rn react-native init HellowWorld
➜  rn cd HellowWorld
➜  HellowWorld cnpm install

http://forums.fami2u.com/t/reactnative/127

1713 次点击
所在节点    程序员
2 条回复
smallpath
2016-10-14 00:09:42 +08:00
搭车分享两篇 RN 的记录, RN 什么都好,就是改源码改得我要爆炸了

https://smallpath.me/post/react-native-bugfix
https://smallpath.me/post/react-native-opti
PaulPeng
2016-10-14 13:54:20 +08:00
搭车招聘 RN,主要做比特币交易所项目,目前已内部 Demo ios 版本,目前需要一名对安卓方向感兴趣的 RN 工程师,如果有兴趣的话可以加我微信,13764246315,具体聊。坐标上海

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/312609

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX