OLD Expo : expo-cli
npm install -g expo-cli
expo start
{
“scripts”: {
“start”: “expo start”
}
}
———–
NEW Expo : expo/cli Local Expo CLI
npx create-expo-app AwesomeExpo
npm install
npx expo start
+++++
https://www.udemy.com/course/mern-stack-e-commerce-mobile-app-react-native-redux-expo/
cd easy-shop
npm start
npm run android
npm run ios
npm run web
To get the Expo SDK version used in your React Native project, you can access the expo object and retrieve the SDK version programmatically.
# npm install expo-constants
# import Constants from ‘expo-constants’;
#
const sdkVersion = Constants?.manifest?.sdkVersion;
console.log(‘Expo SDK version:’, sdkVersion);
Expo CLI is the set of commands that you use to interact with the Expo ecosystem to build, run and deploy your app. For ex: expo init, expo install, expo start, expo eject etc., commands are all part of the CLI.
Expo SDK is the set of packages that you ‘import’ for building your app. For eg: expo-location, expo-calendar are all packages that are part of SDK
++++++++
npx expo start
npx install -g eas-cli
eas login (Expo Login)
eas build: configure(configure to test app for build)
eas build -p android –profile preview (to build apk)
++++++++
1. npx create-expo-app AwesomeProect
2. run proect with Expo go
3. PC & mobile should be in same wifi to run expo
4. npx expo start