yarn install
To just start the Expo server
yarn start
To clear the cache and start the Expo server
yarn restart
or with the Android emulator
yarn android
or with the iOS emulator
yarn ios
If prompted to log in, use this
yarn expo login -u YOUR_USERNAME -p YOUR_PASSWORD
https://docs.expo.dev/build/setup/
Add a file called local.properties
in your android directory and add the path to your Android SDK like this:
for Windows
sdk.dir=C:\\Users\\YourUsername\\AppData\\Local\\Android\\Sdk
for macOS/Linux
sdk.dir=/Users/YourUsername/Library/Android/sdk
npm install -g eas-cli
eas login
eas build --platform android
eas build --platform ios
eas build --platform all
Build for iOS
npx expo run:ios
Build for Android
npx expo run:android
If you're developing locally:
npx expo prebuild
If you're using Expo EAS:
eas build --profile development --platform android
npx create-react-native-library@latest ios-headphone-motion
yarn
cd ios
pod install
yarn ios --device
To add more relative paths, update the files:
- tsconfig.json
- babel.config.js
Documentation: https://github.com/XHMM/react-native-headphone-motion
These are the steps I followed to create the module
npx expo prebuild --clean
npx create-react-native-library@latest ios-headphone-motion
yarn install
npx expo install expo-build-properties # to define the minimum development target for ios, it must be 15^
These are the commands to run the app
npx pod-install
yarn ios --device
I created a new command to achieve the same
yarn ios:pods
npx expo prebuild
eas build --platform ios
eas submit -p ios