在团队中反应原生开发设置

时间:2017-05-19 00:16:35

标签: react-native xcode8

我目前正在开发一个反应原生IOS应用程序的团队,我们都是第一次这样做。我无法找到有关开发设置的任何信息,许多人在使用相同的代码,我们遇到了许多问题,要求每个成员都拥有自己的项目,而且一个拥有主项目的人不得不复制和粘贴代码,任何指针都非常赞赏!!

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

2 个答案:

答案 0 :(得分:0)

因为React本机使用许多库来模块来帮助快速构建应用程序并重新使用。所以,我建议这个工作流程用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

振作!

答案 1 :(得分:0)

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