New Environment Setup
The following steps will guide you through setting up your development environment for React Native using Expo on the lab machines. You’ll have to repeat these steps at home, modifying them as necessary for your own machine.
-
Enable admin on top right using “jamf connect”.
-
Install Homebrew. Open the terminal, run the following command, and follow the steps to add it to the path.
Terminal window /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install Bun.
macOS/Linux curl -fsSL https://bun.com/install | bashWindows powershell -c "irm bun.sh/install.ps1|iex"Why Bun over NPM (Node Package Manager)?

-
Configure both Android and iOS emulators.
- Android with Expo Go: Open this in a new tab and make sure to refer back to the following instructions as you’re going through the setup:
- Ignore step 1 since Android Studio is already installed.
- For steps 3-5 under “Set up Android Studio”, make sure “show package details” checkbox on the lower right is selected.
- For steps 6 and 7 under “Set up Android Studio”, use
~/.zshrc. - For step 3 under “Set up an emulator”, choose Pixel 9.
- iOS with Expo Go: Open this in a new tab and make sure to refer back to the following instructions as you’re going through the setup:
- Ignore step 1 since Xcode is already installed.
- Once you open Xcode, uncheck the AI completion model, and check the iOS option.
- At the end, run this command in the terminal to ensure the correct Xcode path is set:
Terminal window sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- Android with Expo Go: Open this in a new tab and make sure to refer back to the following instructions as you’re going through the setup:
-
(Optional, but recommended) Install Expo Go on your own device.
-
Create a new Expo app using Bun in the parent of the directory you want to work in since the installer will create a new directory for you. For example if you want to work in
~/projects/my-app, run the command in~/projects.Terminal window bunx create-expo-app@latest -
Open the newly created project in VS Code and install the Expo Tools extension.
-
Start Expo. I recommend running this inside the VS Code terminal so you can see any errors that pop up while developing.
Terminal window bun run startOnce it’s running, hit
i(in the same terminal) to open on iOS - it might take a minute to initialize on the first run so be patient. Then, hitato open on Android and ensure both emulators are running. -
Quit Android Studio and Xcode (the applications, not the emulators) to free up resources once both emulators are running. Now that everything is set up, you should not have to open them again. You’ll simply start the emulators from the terminal using
bun run startin the project directory of whatever you’re working on. -
On Moodle, submit a screenshot of both emulators running Expo Go alongside VS Code to Exercise 0.0.0.