Programming Tutorials

create-expo-app vs expo init

By: Manoj in React-Native Tutorials on 2023-04-09  

npx create-expo-app is the recommended way to create a new Expo project instead of expo init. npx create-expo-app creates a new Expo project with the latest Expo SDK version and the new project structure introduced in SDK 41.

The main differences between npx create-expo-app and expo init are:

  • npx create-expo-app downloads the latest version of Expo and creates a new project with it, while expo init creates a new project with the version of Expo CLI that you have installed globally on your machine.
  • npx create-expo-app uses the new project structure introduced in SDK 41, which separates the App.js file into App.js, index.js, and AppEntry.js. This new structure allows for better integration with other platforms, such as web and Electron.
  • npx create-expo-app includes several new features, such as the ability to choose between TypeScript or JavaScript, a new dark mode theme, and support for the new Expo Bare Workflow, which allows for more customizations and native module integrations.

Overall, npx create-expo-app provides a more up-to-date and flexible way to create a new Expo project.






Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in React-Native )

Remove all installed dependencies and install them again

use axios in Expo to call APIs

Start background location tracking after login in expo react native

'import' and 'export' may only appear at the top level - React Native

Session variables in React Native - Expo

disable the back arrow in the header of a screen in a React Navigation Stack Navigator

react-native-background-job alternative in expo app

set up a global error handler in React Native (expo)

Error Handling in TextInput - React Native

react-native-android-location-services-dialog-box alternative in expo

npm install vs npx expo install

Some dependencies are incompatible with the installed expo version:

loadAsync() vs useFonts() in expo - react native

flexDirection in React Native

expo-secure-store to store sensitive data securely in React Native

Latest Articles (in React-Native)

Session variables in React Native - Expo

use axios in Expo to call APIs

Start background location tracking after login in expo react native

set up a global error handler in React Native (expo)

SafeAreaView in React Native

Some dependencies are incompatible with the installed expo version:

disable the back arrow in the header of a screen in a React Navigation Stack Navigator

react-native-android-location-services-dialog-box alternative in expo

Error Handling in TextInput - React Native

react-native-background-job alternative in expo app

'import' and 'export' may only appear at the top level - React Native

OpenType (OTF) vs TrueType (TTF)

loadAsync() vs useFonts() in expo - react native

expo-secure-store vs expo-file-system in expo - react native

Send push notifications to android/ios sample code using expo - react native