---
title: "Coming From Expo"
description: "How Lairport compares to Expo for setup, configuration, native capabilities, testing, and builds, and where it works differently."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.lairport.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Coming From Expo

## Introduction

If you've built an app with Expo, much of Lairport will feel familiar. Both generate the native projects from one configuration file, both check your machine for you, and both pair a free local toolchain with optional paid cloud services. This page walks through where the two are alike, and where they differ, so you can find your footing quickly.

> **Early release**
>
> Lairport is at v0.1. The `laravel-mobile` CLI is published on crates.io, and the `@laravel-rust-mobile/core` adapter is published on npm. Each feature is in beta or alpha: beta features are ready to try on your own apps, and alpha features are experimental. The [status](https://docs.lairport.app/status/) page lists the stage of each feature.

## The Big Difference

Expo apps are React Native apps: your screens are native views, rendered from JavaScript. Lairport apps are your existing Inertia pages, rendered in the phone's own WebView, inside a small Rust shell. You don't write a second frontend or a mobile API, but your screens are web views rather than native views. When a screen truly needs native UI, you may write it in Swift or Kotlin in a Tauri plugin.

## Setup

| | Expo | Lairport |
| --- | --- | --- |
| Start a project | `npx create-expo-app` | `laravel-mobile init` in your existing Laravel Rust app |
| The CLI | `expo`, installed in your project by npm | `laravel-mobile`, installed once with Cargo; `init` adds the Tauri CLI to your project with npm |
| Check your machine | `npx expo-doctor` | `laravel-mobile doctor`, with `--fix` |

Like Expo, the tool that compiles your app arrives with your project's npm dependencies. The `init` command adds `@tauri-apps/cli` to your `package.json` file and installs it, so a teammate who clones your project only needs `npm install`. The one extra step is installing `laravel-mobile` itself, once per machine, with `cargo install laravel-mobile-cli`.

## Configuration

| | Expo | Lairport |
| --- | --- | --- |
| Config file | `app.json`, or `app.config.js` for values computed at build time | `mobile.toml`, a static file |
| Native projects | Generated by `npx expo prebuild`, gitignored | Generated into `apps/mobile/gen` by `sync`, `dev`, and `build`, gitignored |
| Customizing native projects | Config plugins, JavaScript functions that edit the generated projects | Tauri plugins, written in Rust, Swift, and Kotlin |
| Build profiles | `eas.json` profiles, such as development, preview, and production | `--debug` for a debug build; no named profiles yet |
| Validation | Schema warnings | `laravel-mobile config check` reports every problem with its line and a fix |

Both follow the same idea, which Expo calls Continuous Native Generation: you describe your app in one file, and the Xcode and Gradle projects are generated from it rather than edited by hand.

`mobile.toml` is deliberately static. If you need different values per environment, such as a staging app ID, there's no built-in way to do that yet.

## Platforms and Native Capabilities

| | Expo | Lairport |
| --- | --- | --- |
| Platforms | iOS, Android, and web | iOS and Android, with your Inertia app serving the web |
| Minimum versions | Set by each Expo SDK release | iOS 15.0 and Android 7 (API 24) by default, configurable |
| Native modules | Dozens of Expo SDK modules, plus any React Native library | 11 official Tauri plugins, plus any Tauri plugin |
| Calling them | Each module's JavaScript API | `@laravel-rust-mobile/core`, or each plugin's JavaScript API |

Expo's SDK is broader today. Some capabilities you might expect from Expo are not available in Lairport yet:

- **Camera capture.** There's QR and barcode scanning, and a file input with `capture` opens the camera from a page, but there's no full camera plugin.
- **Over-the-air updates.** Since your pages come from your server, deploying your server already updates most of your app. Updates for the navigation and splash configuration are planned for v0.2.
- **Native navigation.** A native tab bar is available from `[[tabs]]` in `mobile.toml`; modal sheets and native back gestures are planned for v0.2.

## Testing Your App

| | Expo | Lairport |
| --- | --- | --- |
| Instant preview on a phone | Expo Go, a native app that runs the Expo SDK's modules | `laravel-mobile dev` opens your pages in the phone's browser, without native plugins |
| Your own dev app | A development build, created with `npx expo run:ios` or EAS Build | `laravel-mobile dev ios` or `dev android` builds and runs your real app |
| Simulator and emulator | Press `i` or `a` in `npx expo start` | `laravel-mobile dev ios` or `dev android` |
| Live reload | Fast Refresh for JavaScript | Vite HMR for your pages; Tauri rebuilds for app Rust changes; pull down to refresh after server changes |
| Hosted simulators | Available on paid plans | Not available |

The closest match to Expo Go is our planned dev client, coming in v0.2. Until then, our browser preview is great for layouts and flows, and a simulator, emulator, or device is the way to test native features. The [running your app](https://docs.lairport.app/running/) documentation covers each option.

## iOS Without a Mac

| | Expo | Lairport |
| --- | --- | --- |
| Preview on an iPhone | Expo Go, with native modules | The phone's browser, without native plugins |
| Run in the iOS simulator | Needs a Mac | Needs a Mac |
| Build for iOS | EAS Build compiles in the cloud, from any machine | Needs a Mac today; cloud builds are planned |
| Submit to the App Store | `eas submit`, from any machine | Upload with Xcode or Transporter today; `laravel-mobile submit` is planned for v0.1 |

This is the biggest gap today. With Expo, you can develop and ship an iOS app without ever touching a Mac. With Lairport, you can preview your pages on an iPhone from any machine, but running the native app and building it for the App Store need a Mac until the dev client and cloud builds arrive.

## Building and Shipping

| | Expo | Lairport |
| --- | --- | --- |
| Local builds | `npx expo run:ios --configuration Release`, or `eas build --local` | `laravel-mobile build ios` or `build android` |
| Cloud builds | EAS Build | Planned, as a paid [cloud service](https://docs.lairport.app/cloud-services/) |
| CI setup | EAS Workflows | Cloud builds, planned as a paid service, will trigger from a push or tag |
| Store submission | EAS Submit | `laravel-mobile submit`, free from your own machine, planned for v0.1; cloud submission planned on paid plans |
| Pricing | Free tier, then from $19 a month plus usage | Free and open source; cloud services planned, with the free tier, Starter at $19 a month and Pro at $99 a month, plus usage |

Source: https://docs.lairport.app/expo/index.mdx
