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

查看:217
本文介绍了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. native-cli和Expo with Bare工作流程之间有什么区别?
  2. 我应该在项目中包括什么?为什么?
  3. 博览会是由Facebook创建的吗?

推荐答案

我在使用Expo Expo裸露工作流程3个月后正在编写此答案.

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

由于波纹管区域,我将建议在裸露的工作流程上使用react-native cli .

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

  1. Expo裸露的工作流不是由Facebook团队开发的,因此当RN Cli中有新的 update 时,expo会花费1-2个月的时间来添加其工作流.
  2. 您无法控制应用程序的大小,因为expo在SDK中包含预包含的库. (最低产品构建从29MB-38MB开始)
  3. 两个裸流程RN Cli中的应用程序部署和编码样式都相同,那么为什么不使用React native Cli.
  4. 在正在进行的项目中间弹出世博会确实是一个痛苦的过程.
  5. 您可能(很少)会遇到与外部lib的兼容性问题.
  6. 您会遇到与expo config相关的任何错误,因此在Internet上找到答案的机会非常少.
  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 Expo裸机工作流
如果您对React本机架构有很好的了解,并且知道项目的深入技术要求.另外,您还应该知道可用的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天全站免登陆