参考文档:Taro React Native 端开发流程 - 分离模式
Taro 原生 React Native 壳工程,和 React Native init 的工程的区别如下:
yarn dev:rn 启动 metro serveryarn buid:rn 打包 jsbundle 并通过配置 rn.output 输出到壳工程react-native 初始化项目npx react-native init taroDemo --version 0.73.0
expo-cli 自动安装 exponpx install-expo-modules@latest
android, ios 脚本,增加 upgradePeerdeps 脚本install-peerdeps 和 pod-installREADME.md 文件[license] 复制 LICENSE 文件
更新 Taro 需要的依赖(如果还没正式发布,则使用对应的 alpha 或 beta 版本)
yarn
yarn upgradePeerdeps
https://react-native-community.github.io/upgrade-helper/
使用 Taro 最新版,或者修改
upgradePeerdeps指定 Taro 版本,再执行:
yarn upgradePeerdeps
$ claude mcp add taro-native-shell \
-- python -m otcore.mcp_server <graph>