团队中的 React Native Dev 设置

React Native Dev Setup in Team

我目前在一个开发 React Native IOS 应用程序的团队中工作,我们都是第一次这样做。我无法找到任何关于开发设置的信息,因为许多人都在使用相同的代码,我们 运行 遇到许多问题,要求每个成员都有自己的项目,并且主项目的一个人必须复制和粘贴代码,非常感谢任何指针!!

初始项目构建成功,当其他人克隆存储库并尝试构建时出现问题。错误太多,每台机器都不同。 X-Code 中是否有一些设置或我在团队环境中使用 React Native 工作时缺少的东西?

因为 React native 使用模块等许多库来帮助快速构建应用程序 reuse.So,我建议使用此工作流来使用 RN 构建移动应用程序。

- Use GIT as system version control
- Use IDE (Android Studio, Xcode) to help auto build and fix a lot build error when your team install new libraries and use `react-native link` (ex: react-native-router-flux,...)
- Just push js file to repository and other member can pull it and reload js file. 
- Do it and take a look some repository on github with tutorials

加油!

使用 Yarn 而不是 Node 包管理器解决了大部分问题。