NOTE: If you ever run into development setup issues, I recommend using your AI chatbots to help you out. Once you explain what you’re trying to do and what OS you’re on, they’re usually very good at providing very detailed step-by-step guidance.
You will need accounts and API keys for both of the below:
- Claude: visit https://console.anthropic.com/settings/keys
- OpenAI: visit https://platform.openai.com/api-keys
- The below setups allow you to create and work on React Native projects using Expo.
- You have the flexibility to test your apps on either physical devices or desktop simulators.
- The Expo Go app provides a quick way to test on physical devices without additional setup.
- Using simulators allows you to test your app directly on your desktop, which can be convenient during development.
- If you choose to use simulators, you'll need to install additional software (Xcode for iOS or Android Studio for Android), which requires more disk space and setup time.
- Although you can use Android emulators on Windows machines, my experience has been that, unless you have a somewhat decent GPU/graphics card, the Android emulators can be very slow.
- The Expo setup guide provides customized instructions based on your specific development environment and needs.
For more detailed information on the Expo development workflow, refer to:
- Expo documentation: https://docs.expo.dev/get-started/installation/
- Expo Go client: https://docs.expo.dev/get-started/expo-go/
-
Install Node.js and npm:
- Visit https://nodejs.org/
- Download and install the LTS version for macOS
-
Install Watchman:
-
Open Terminal and run:
brew install watchman
-
If you don't have Homebrew, install it first from https://brew.sh/
-
-
Install Expo CLI:
-
In Terminal, run:
npm install -g expo-cli
-
-
Install VS Code:
- Download from https://code.visualstudio.com/
- Install the application
-
Install React Native extensions for VS Code:
- Open VS Code
- Go to the Extensions view (Cmd+Shift+X)
- Search for and install these extensions:
- React Native Tools (by Microsoft)
- React-Native/React/Redux snippets for es6/es7 (by EQuimper)
- Continue (by continue.dev)
-
Choose your preferred method for running and testing your app:
Option A: Using a physical device with Expo Go
- Install the Expo Go app on your iOS or Android device:
- When you start an Expo project, scan the QR code with your phone's camera (iOS) or the Expo Go app (Android) to run the app on your device.
Option B: Using desktop simulators
- If you prefer to run your app on your desktop using simulators, you'll need to set up the necessary phone simulation software.
- Visit the Expo setup guide: https://docs.expo.dev/get-started/set-up-your-environment/
- The guide will then provide you with step-by-step instructions tailored to your OS and desired development method, including how to install Xcode (for iOS simulation) or Android Studio (for Android simulation).
-
Install Node.js and npm:
- Visit https://nodejs.org/
- Download and install the LTS version for Windows
-
Install Expo CLI:
- Open Command Prompt and run:
npm install -g expo-cli
-
Install VS Code:
- Download from https://code.visualstudio.com/
- Install the application
-
Install React Native extensions for VS Code:
- Open VS Code
- Go to the Extensions view (Ctrl+Shift+X)
- Search for and install these extensions:
- React Native Tools (by Microsoft)
- React-Native/React/Redux snippets for es6/es7 (by EQuimper)
- Continue (by continue.dev)
-
Choose your preferred method for running and testing your app:
Option A: Using a physical device with Expo Go
- Install the Expo Go app on your iOS or Android device:
- When you start an Expo project, scan the QR code with your phone's camera (iOS) or the Expo Go app (Android) to run the app on your device.
Option B: Using desktop simulators
- If you prefer to run your app on your desktop using simulators, you'll need to set up the necessary phone simulation software.
- Visit the Expo setup guide: https://docs.expo.dev/get-started/set-up-your-environment/
- The guide will then provide you with step-by-step instructions tailored to your OS and desired development method, including how to install Android Studio for Android simulation.
Note: iOS simulation is not available on Windows. If you need to test iOS apps, you'll need to use a physical iOS device or use a Mac for development.
-
Install Node.js and npm:
- Open a terminal and run the following commands:
curl -fsSL <https://deb.nodesource.com/setup_lts.x> | sudo -E bash - sudo apt-get install -y nodejs
- This installs the latest LTS version of Node.js and npm
-
Install Watchman:
- Follow the installation instructions for your Linux distribution from the official Watchman website: https://facebook.github.io/watchman/docs/install#buildinstall
-
Install Expo CLI:
- In the terminal, run:
sudo npm install -g expo-cli
-
Install VS Code:
- Download the .deb file from https://code.visualstudio.com/
- Install it using your package manager or run:
sudo dpkg -i <path-to-downloaded-file>.deb
-
Install React Native extensions for VS Code:
- Open VS Code
- Go to the Extensions view (Ctrl+Shift+X)
- Search for and install these extensions:
- React Native Tools (by Microsoft)
- React-Native/React/Redux snippets for es6/es7 (by EQuimper)
- Continue (by continue.dev)
-
Choose your preferred method for running and testing your app:
Option A: Using a physical device with Expo Go
- Install the Expo Go app on your iOS or Android device:
- When you start an Expo project, scan the QR code with your phone's camera (iOS) or the Expo Go app (Android) to run the app on your device.
Option B: Using desktop simulators
- If you prefer to run your app on your desktop using simulators, you'll need to set up the necessary phone simulation software.
- Visit the Expo setup guide: https://docs.expo.dev/get-started/set-up-your-environment/
- The guide will then provide you with step-by-step instructions tailored to your OS and desired development method, including how to install Android Studio for Android simulation.
Note: iOS simulation is not available on Linux. If you need to test iOS apps, you'll need to use a physical iOS device or use a Mac for development.