Building Mobile Apps with Expo and Replit
Replit is the fastest way to create and publish cross-platform mobile apps using Expo, without any setup or configuration.
Matt Palmer
Head of Developer Relations
Replit currently supports Expo development through the Expo Template and building with Assistant. Expo development is not supported with Agent at the moment.
Apps are the new websites, and everyone should be able to create them. By combining Replit’s browser-based development environment with Expo, mobile app creation is now as simple as building a website.
This tutorial will guide you through creating a mobile app using Replit and Expo, from setting up your environment to publishing your app to your device.
Watch Replit’s two-part video series to learn how to create and publish a mobile app using Replit and Expo.
Part 1: Create a mobile app in five minutes
Learn how to create a native iPhone/Android app using Replit and Expo in just five minutes - perfect for beginners.
Getting started with Replit and Expo
Prerequisites
Before getting started, you’ll need:
- A Replit account (free)
- Expo Go app installed on your mobile device
- An Expo EAS account (free)
For publishing to app stores later, you’ll need:
- An Apple Developer account ($99/year) for iOS
- A Google Play Developer account ($25 one-time) for Android
Remix the Template
Start by visiting the Expo Template on Replit and selecting “Remix” to create your own copy. This creates a complete copy of the Template in your Replit account, including all the files, configurations, and dependencies.
Run the Template
Select the “Run” button in your Workspace. The Console will display a QR code that links the Expo Go app to your Replit project.
Preview on your device
Open the Expo Go app on your phone and scan the QR code displayed in your Workspace. This will load your app directly on your phone. It may take a minute or two for the project to compile.
Expo uses React Native to help you build apps for iOS, Android, and the web from a single codebase. This means you can build an app once and have it available on all platforms.
The democratization of mobile development through Replit and Expo makes app creation accessible to everyone, not just professional developers.
Customizing your app with Assistant
Configure Assistant for Expo
To help Assistant understand your Expo project better, you can create a custom prompt:
- Select the settings icon in the Assistant panel
- Go to “Assistant prompt”
- Create a prompt that specifies this is an Expo project for building React Native applications
Use natural language to build your app
With Assistant, you can describe what you want your app to do, and it will modify the code for you. For example, you might ask: “Create an app that shows me a random image of a cat every time I press a button.”
Iterate on mobile
One of the most powerful features is the ability to continue developing on your mobile device:
- Open the Replit Mobile App
- Find your project
- Use Assistant to make changes and improvements
- See updates appear in real-time
Part 2: Publish your mobile app
Learn how to deploy your Replit Expo app to iOS in under 10 minutes - from development to installation on your iPhone.
Publishing your app to your device
While this guide focuses on iOS deployment, the same Replit and Expo steps apply to Android development. For Android, follow the Expo Android deployment guide and Google Play Console process.
Prerequisites
Before publishing, you’ll need:
- Your Replit App from Part 1
- An Apple Developer account ($99/year) if publishing to iOS
- An iPhone (for iOS deployment)
- An Expo account
Note: After setting up your Apple Developer account, you may need to wait 16-24 hours for Apple to approve your profile.
Initialize EAS
EAS (Expo Application Services) acts as the interface between your build and Expo, as well as the App Store.
- Stop your app if it’s running
- From the dropdown menu in your Workspace, select “EAS init”
- Log in to your Expo account when prompted
- Create a new project or select an existing one
This step authenticates your application with your Expo account.
Run EAS update
This initialization step helps configure your project and link it to your Apple Developer account.
- From the dropdown menu, select “EAS update”
- Wait for the Metro bundler to start and complete the export process
You’ll know this step is successful when you see that bundles have been uploaded and a branch has been created.
Build for iOS
Now it’s time to create a preview build for your iOS device.
- From the dropdown menu, select “EAS publish preview iOS”
- Enter an iOS bundle identifier (e.g., com.yourname.yourappname)
- Log in to your App Store Connect account when prompted
- Select your individual developer team
- Generate the device distribution certificates when asked
Learn more about iOS certificates and provisioning profiles.
Register your device
To install development apps on your iPhone, you need to register your device.
- When prompted, select “website” to register your device
- Scan the QR code that appears with your iPhone
- Download the development profile when prompted
- Go to Settings on your iPhone
- Select “Profile Downloaded” at the top
- Install the profile and enter your passcode when prompted
- Go back to your Workspace and press any key to continue
Wait for the build
Expo will now build your app, which takes about 10-15 minutes depending on the complexity of your application.
- The build will be queued
- You can check progress in your Expo dashboard under the “Builds” tab
- Once complete, a new QR code will appear for installing the app
Install the app on your device
When the build is complete, install the app on your iPhone.
- Scan the installation QR code with your iPhone
- Select “Install” when prompted
- The app will begin installing on your home screen
Enable developer mode
Before you can open the app, you need to enable developer mode on your iPhone.
- Go to Settings > Privacy & Security
- Scroll to the bottom and find “Developer Mode”
- Toggle it on
- Restart your device when prompted
- After restarting, you can open and use your app!
What you’ve accomplished
By following this tutorial, you now have a real, native mobile app on your device. Most developers would need days or weeks to achieve this, but you’ve done it in about an hour.
Common issues and solutions
Conclusion
With Replit and Expo, building mobile apps has never been easier or faster. You can go from idea to app in a matter of hours, not weeks or months. The combination of browser-based development and cross-platform mobile framework removes traditional barriers to entry for mobile development.
For more detailed information, check out: