react-native cli 和 Expo with Bare 工作流有什么区别? [英] What is the difference between react-native cli and Expo with Bare workflow?

查看:20
本文介绍了react-native cli 和 Expo with Bare 工作流有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将构建一个具有多种复杂功能的非常大的应用程序.但我被困在以下几点-

I am going to build a very big application with multiple complex functionalities. but I am stuck on bellow points -

  1. react-native cli 和 Expo with Bare 工作流程有什么区别?
  2. 我应该在我的项目中包含什么以及为什么?
  3. expo 是由 facebook 创建的吗?

推荐答案

在使用 expo 裸工作流 3 个月后,我正在写这个答案.

I am writing this answer after using expo bare workflow for 3months .

由于以下区域,我会推荐使用 react-native cli 而不是 expo 裸工作流.

I will recommend to use react-native cli over expo bare workflow because of bellow regions.

  1. Expo 裸工作流不是由 facebook 团队开发的,所以当 RN Cli 中有新的更新时,expo 需要 1-2 个月才能添加到其工作流中.
  2. 您无法控制应用程序的大小,因为 expo 在 SDK 中包含预包含的库.(最小产品构建从 29MB-38MB 开始)
  3. 应用部署和编码样式在裸工作流 RN Cli 中是相同的,那么为什么不使用 React native Cli.
  4. 在进行中的项目中退出博览会是一个非常痛苦的过程.
  5. 您可能(很少)面临与外部库的兼容性问题.
  6. 您遇到任何与 expo config 相关的错误,那么通过互联网找到答案的机会就会非常少.
  1. Expo bare workflow is not developed by facebook team , so when there is a new update in RN Cli, expo takes 1-2 months to add in its workflow .
  2. You can not control the size of app because expo includes pre included library in SDK. (minimum prod build starts from 29MB-38MB)
  3. App deployment and coding styling is same in both bare-work flow RN Cli, then why not use React native Cli.
  4. Ejecting expo in middle of ongoing project is really painful process.
  5. you may (very rarely) face compatibility issue with external lib.
  6. you face any error related to expo config , then chances of finding its answer over internet is very less.

何时使用 expo 裸工作流
如果你对 React Native 架构有很好的理解,并且你知道项目的深度技术要求.此外,您应该了解可用的 expo 库以及您将在项目中使用多少东西,并且您也不必担心应用程序的大小.

When to use expo bare workflow
if you have a really good understanding on react native architecture and you know the depth technical requirements of project. Also you should aware of available expo libraries and how many things you are going to use in your project and you are not bothered about app size too.

注意:以上几点你不会在编码时看到 RN cli 和裸工作流之间的任何区别.

Note : expect above points you wont see any difference between RN cli and bare work flow while coding .

这篇关于react-native cli 和 Expo with Bare 工作流有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆