[英]How do you set up a bare workflow react native project?
I'm new in the field and when while reading the documentation it says that the difference between bare and managed workflow is the expo-cl command to initialize the project with.我是该领域的新手,在阅读文档时,它说裸工作流和托管工作流之间的区别在于用于初始化项目的 expo-cl 命令。 But when I open the documentation the first thing it says to do it says expo-cli init ( https://docs.expo.io/bare/exploring-bare-workflow/ ), which doesn't make sense?
但是当我打开文档时,它说要做的第一件事是 expo-cli init ( https://docs.expo.io/bare/exploring-bare-workflow/ ),这没有意义吗?
what's the actual difference between the two in terms of creating a project and working with it?在创建项目和使用它方面,两者之间的实际区别是什么?
When you run the command expo init YourProject
, it will ask if you want to create a managed workflow or bare workflow project.当您运行命令
expo init YourProject
,它会询问您是要创建托管工作流还是裸工作流项目。 For beginner, I suggest doing the managed workflow since it does a lot of background stuff for you.对于初学者,我建议使用托管工作流,因为它为您做了很多背景工作。
The big difference is that in the managed workflow, everything goes through expo, even the build process.最大的不同在于,在托管工作流中,一切都经过博览会,甚至构建过程。 Which might not be a good idea if you are developing an app for a company.
如果您正在为公司开发应用程序,这可能不是一个好主意。 They actually move your code to their server and build it there.
他们实际上将您的代码移动到他们的服务器并在那里构建它。
You can also eject your project later on from a managed workflow.您也可以稍后从托管工作流中弹出您的项目。 one thing to note is that some of the expo packages might not work after, and you will need to switch to a package that's compatible with the bare workflow.
需要注意的一件事是,某些 expo 包之后可能无法使用,您需要切换到与裸工作流兼容的包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.