32554

differences between create-react-native-app and exp init

<h3>Question</h3>

I found that create-react-native-app is based on expo. but when using exp-cli, it is also based on Expo.

what are differences between create-react-native-app and exp init ?


<h3>Answer1:</h3>

Answer to this question is well documented in expo documentation

<blockquote> <h2>Expo & "Create React Native App"</h2>

Create React Native App lets you build a React Native app without any build configuration. This may sound familiar to you because Expo does this as well -- when you create a project with XDE or exp you don't have to deal with Xcode or Android Studio configuration files, it just works. This guide is intended to outline some of the key differences between Expo and CRNA (create-react-native-app).

CRNA does not require you to have an Expo account

You can run create-react-native-app YourAppName and off you go. So what does not having an account mean, and what would signing up and using XDE/exp get you -- why do we require it with Expo? Having an Expo account allows you to do the following:

<ul><li>Publish your project to a permanent URL, eg:https://expo.io/@community/reactconf2017.See Publishing on Expo for more information. </li> <li>Build binaries for app / play store distribution. To do this with CRNA without using Expo, you would need to run eject.</li> </ul></blockquote>
<h3>Answer2:</h3>

Updated answer:

create-react-native-app was replaced by expo-cli.

https://docs.expo.io/workflow/glossary-of-terms/#create-react-native-app


<h3>Answer3:</h3>

there are some advantages and disadvantages for each

react native app advantage:

You can add native modules written in Java/Objective-C

react native app disadvantage:

Needs Android Studio and XCode to run the projects

expo advantages:

Setting up a project is easy and can be done in minutes

Expo can build .apk and .ipa files

do not need simulator or etc for running your app

expo disadvantages:

You can't add native modules.

your finalize app is more bigger than react native app init

i advice to you read this https://docs.expo.io/versions/latest/introduction/why-not-expo

来源:https://stackoverflow.com/questions/51214823/differences-between-create-react-native-app-and-exp-init

Recommend

  • Combining cbind and paste in linear model
  • How to overload `float()` for a custom class in Python?
  • spark in python: creating an rdd by loading binary data with numpy.fromfile
  • Muxing a H.264 Annex B & AAC stream using libavformat with vcopy/acopy
  • How to place UI widgets on top of multiple Z ordered Surface Views in Android
  • R: Hide dummies output
  • Django email message as HTML
  • Add missing rows within combinations of factors
  • How to use mmap to point to STL type?
  • Plotting a continuous stream of data with MatPlotLib
  • How to Enable Systemd service in openshift/jenkins-1-centos7 docker container?
  • Scala and SBT install on Debian with Java 8
  • how to make all possible power set(or subset) from arrayList objects?
  • Processing dynamic MP3 URL
  • I am trying to create an app in android to insert data into sql server through a web service.
  • Setup SignalR and Service Bus inside a Azure Service Fabric service
  • Share Application Through Facebook, Twitter, Email, and Messaging Only
  • Eclipse ADT Plugin crashed after updating to version 22.0
  • BREAK ON instruction in MySQL queries?
  • no endpoints available for service \\“kubernetes-dashboard\\”
  • Combine two jagged lists into one
  • jQuery colorbox breaks postbacks in ASP.NET Web Forms
  • Getting/building the SQL (with parameters) from NHibernate 3.2
  • yii rewrite url with many sub categories
  • How can I do case insensitive string search with Linq and SQL Server?
  • Unable to start a WebView from an AsyncTask
  • C# code can't “see” the methods in my C++ dll
  • Set WebClient.Builder.exchangeStrategies() without losing Spring Jackson configuration
  • All Event listing on specified date in Google Calender api (V3) in java?
  • trigger ontouch event programmatically
  • How to run chrome.tabs.insertCSS from the background page on each page?
  • Dynamic XML Schema Validates Subsection of Document
  • How to write seo friendly url's using htaccess?
  • Django, uWSGI & nginx: Process dies for “no reason”
  • using maven pom while creating jar:test-jar some times it says JAR will be empty - no content was ma
  • Using Service Component Runtime