代码拉取完成,页面将自动刷新
这里是本地离线预览 React Native 文档的方法,解决因官网 CDN 资源导致无法打开官方文档网站。
# 克隆并下载带有 submodule 的项目
git clone https://github.com/jaywcjlove/react-native-doc.git --depth=1 --recurse-submodules
参数 --recurse-submodules
会克隆太久 react-native
。
# 克隆项目
git clone https://github.com/jaywcjlove/react-native-doc.git --depth=1
# 更新 submodule 子项目
git submodule update --depth 1 --init --recursive
参数 --depth
只有 git@2.23.0-rc2 支持
npm install
npm run start
虽然本地预览静态服务,但仍有很多链接是走 CDN
,通过运行脚本来替换
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。