- flex布局 juejin.cn/post/700462…
- React Native中文网 reactnative.cn/docs/gettin…
- npm包搜索 www.npmjs.com/
Windows环境搭建
安装node版本管理工具 github.com/coreybutler…
切换nvm下载源 nvm node_mirror npm.taobao.org/mirrors/nod…
nvm npm_mirror npm.taobao.org/mirrors/npm…
nvm ls // 查看目前已经安装的版本
nvm install latest 64 //安装最新版64位的nodej
nvm install 6.10.0 // 安装指定的版本的nodejs
nvm use 6.10.0 // 使用指定版本的nodejs
npm -v //查看当前 npm 版本
node -v //查看当前 node.js 版本
nvm install node 安装最新版 Node
nvm install iojs 安装最新版 iojs
nvm install unstable 安装最新不稳定版本的 Node
RN运行调试步骤 1.删除node_modules目录,执行 yarn install 2.使用Android Stuido打开工程,下载安装依赖 3.VS code执行yarn android 4.电脑和测试手机连接同一个wifi,ipconfig查看电脑ip 5.手机程序启动后晃动设置加载ip&端口 6.如果编译成功但白屏,kill app重新启动
React Native清缓存命令 react-native start —reset-cache //重启终端 killall -9 node npm start -- --reset-cache
//添加第3方包
yarn add xxxx
rm -rf node_modules && yarn cache clean react-native start --port 8082 /usr/local/Cellar/node/12.7.0/bin/node
rm -a node_moudle yarn reset cache yarn start --port=8083 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
var sharedBlacklist = [ /node_modules[\/\\]react[\/\\]dist[\/\\].*/, /website\/node_modules\/.*/, /heapCapture\/bundle\.js/, /.*\/__tests__\/.*/ ];