简体   繁体   English

React-Native和Expo:create-react-native-app和react-native init之间的任何区别

[英]React-Native and Expo: Any different between create-react-native-app and react-native init

I need some clarify of the difference between create-react-native-app then detached and react-native init. 我需要弄清楚create-react-native-app然后分离和react-native初始化之间的区别。

I understand that the former one will create an app based on the expo and later require detached to expose the native code of android and iOS for native code implementation. 我知道前者将基于博览会创建一个应用程序,后来需要分离以公开android和iOS的本机代码以实现本机代码。 The react-native init will generate the native code at the same time. react-native初始化将同时生成本机代码。

Are there any difference after detach from expo after created from create-react-native-app command, compared with react-native init? 与react-native init相比,通过create-react-native-app命令创建后与expo分离后,有什么区别吗?

The only significant difference is that you still depend on the Expo SDK. 唯一的显着区别是您仍然依赖Expo SDK。 From the website: 从网站:

We call this "detaching" because you still depend on the Expo SDK, but your project no longer lives inside the standard Expo client. 我们称此为“分离”是因为您仍然依赖于Expo SDK,但是您的项目不再位于标准Expo客户中。 You control the native projects, including configuring and building them yourself. 您可以控制本机项目,包括自己配置和构建它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM