react-native cli 和 Expo with Bare 工作流有什么区别?

What is the difference between react-native cli and Expo with Bare workflow?(react-native cli 和 Expo with Bare 工作流有什么区别?)
本文介绍了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 工作流有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Why local notification is not firing for UNCalendarNotificationTrigger(为什么没有为UNCalendarNotificationTrigger触发本地通知)
iOS VoiceOver functionality changes with Bundle Identifier(IOS画外音功能随捆绑包标识符而变化)
tabbar middle tab out of tabbar corner(选项卡栏中间的选项卡角外)
Pushing UIViewController above UITabBar(将UIView控制器推送到UITabBar上方)
How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)