GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing dbafu.github.io — 一个DBA的工作学习笔记 目标环境:写此文是因为连搭环境都会有不少坑出来。
这个工具我还不太熟悉,其文档地址在此 https://facebook.github.io/react-native/docs/getting-started , 稍后再切换到 expo, 下面主要是对 react-native 的介绍。
安装步骤:1 安装 HomeBrew官网: https://brew.sh/ 在终端粘贴下面的命令安装 homebrew
当然 HomeBrew 得到默认仓库也在国外,嫌网速慢,等待蛋疼可以参考下面操作,更改HomeBrew 仓库为清华镜像
下面使用 brew 安装软件不需要 sudo 前缀,只有在使用 npm 全局安装模块的时候才需要管理员权限。 2 安装 nodejs
也给出brew 安装 nodejs的命令。
安装完 nodejs 的第二件事就是切换 npm 仓库为淘宝,你可以百度 npm taobao 找到方法,或者使用一个简单的方法,使用
2 安装 watchman,flow
3 安装 react-native-cli
安装 Xcode 以及 Xcode command line tools
安装 Android Studio到 Android 开发者网站下载 Android studio。 默认是访问不到的,但是Google的中文域名可以访问地址: https://developer.android.google.cn/studio/ 下载完后需要安装 sdk , 并且新建一个模拟器
新建一个 react-native 项目
运行 ios App
此时不出意外会出错:
运行 Android App运行 Android App 需要先开启模拟器,
会出现的问题在上面安装 Android Studio时已经提到,也给出了解决方法,主要是要先创建一个虚拟机或者模拟器,打开模拟器后退出Android studio, 安装 NDKreact-native : https://github.com/facebook/react-native 代码库里面 examples 需要使用 ndk ,而且不是最新版本 需要下载 10e 这个旧版本。 | ||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |