简体   繁体   English

您如何设置裸工作流反应本机项目?

[英]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.

相关问题 如何为 React Native Bare 工作流指定重定向 URI - How to specify the Redirect URI for React Native Bare workflow “react-native start”有效,但在“react-native run-android”正在进行时崩溃,即使是在一个新项目上(裸工作流) - "react-native start" works, but crashes while "react-native run-android" is ongoing, even on a fresh project (bare workflow) 在根项目“我的项目”中找不到任务“lint”。 一些候选者是:'init' React Native Expo SDK 45 Bare Workflow - Task 'lint' not found in root project 'My Project'. Some candidates are: 'init' React Native Expo SDK 45 Bare Workflow 使用 Bare Workflow 在 React Native Expo 中启用 Kotlin 的困难 - Difficulties enabling Kotlin in React Native Expo with Bare Workflow 将裸工作流 expo React-Native 应用程序发布到 Google Play,该应用程序之前在托管工作流中发布 - Publishing a bare-workflow expo React-Native app to Google Play which was previously published in the managed workflow 如何设置Android Studio以将项目视图用于新项目? - How do you set up Android Studio to use project view for new project? 第一次如何在新电脑上设置已有的React-Native项目? - How to set up an existing React-Native project from a new computer for the first time? 运行反应原生裸项目导致错误配置项目':react-native-reanimated'时出现问题 - Running react native bare project results in error A problem occurred configuring project ':react-native-reanimated' 你如何调试 React Native? - How do you debug React Native? 如何在 React Native run-android 中解决“您的项目中需要有 MainApplication” - How do I resolve 'You need to have MainApplication in your project' in React native run-android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM