One .tsx. A website, an iPhone app and an Android app.
Pyreon compiles your components to SwiftUI and Jetpack Compose views, so no JavaScript engine runs your UI on the device, and the same source server-renders on the web. The native targets are experimental; the web side is the mature part.
npm create @pyreon/multiplatform@latest - 22 canonical primitives (
Stack,Text,Field,Select,Scroll…) that compile to SwiftUI and Compose views and render DOM on the webcapability - No JS engine under your UI on the device: the generated app is SwiftUI or Compose code (a WebView appears only where you host one)capability
- 2 required device lanes in CI: XCUITest on an iOS Simulator and Compose instrumented tests on an Android emulatorrun when native paths change
Synthetic, author-run, Apple M3 Max, real Chromium unless noted. Reproduce: pyreon.dev/docs/benchmarks
Every result, including where we lose →Pyreon Native and React Native, line by line.
Pyreon's native targets are experimental; React Native and Expo run production apps at scale. This table follows the repo's own comparison page and is honest about where Expo is ahead.
- PyreonPyreon is ahead on the record
- React Native and Expo aheadReact Native and Expo is ahead, and we say so
- tieconfidence intervals overlap
- differentno winner: they work differently
| Topic | Pyreon | React Native and Expo | Verdict |
|---|---|---|---|
| UI on the device | Generated SwiftUI and Compose: the platform's own widgets. | Platform widgets through React Native's renderer; Expo UI adds SwiftUI and Compose components. | different |
| Runtime under the UI | None: the app is a native binary. | The Hermes JavaScript engine. | different |
| Web from the same source | First-class: SSR, SSG, ISR, islands, SPA. | react-native-web and Expo Router web; SSR is newer and still maturing. | Pyreon |
| State model | Signals lower to @State / @Observable in SwiftUI and mutableStateOf in Compose. | React's re-render model. | different |
| Code outside the native subset | A narrow, declarative subset compiles; the rest gets a named warning almost always. | Runs the whole language everywhere. | React Native and Expo ahead |
| Over-the-air updates | Not possible for native logic: it is compiled. | EAS Update ships JavaScript fixes between store reviews. | React Native and Expo ahead |
| Third-party native SDKs | First-party hooks for common cases plus a useNativeModule bridge you write. | The largest catalog (Expo SDK plus community). | React Native and Expo ahead |
| Hot reload on device | Web: yes. Native: a rebuild per change, about 3 s warm with pyreon-native dev. | Fast Refresh. | React Native and Expo ahead |
| Build and submit service | Local xcodebuild and gradle. | EAS Build, Submit and Workflows. | React Native and Expo ahead |
| Animation | Platform animation through <Transition>. | Reanimated and Skia. | React Native and Expo ahead |
| Maturity | Experimental. | Production. | React Native and Expo ahead |
Synthetic, author-run, Apple M3 Max, real Chromium unless noted. Reproduce: pyreon.dev/docs/benchmarks Method and every result →
The same todo screen, twice.
On the right, <Stack> becomes a VStack and a Column, <Field> a TextField, and <Scroll> around <For> a lazy list on both platforms. The same file renders DOM on the web.
import { useState } from 'react'
import { Button, FlatList, Text, TextInput, View } from 'react-native'
type Todo = { id: number; text: string }
export function Todos() {
const [draft, setDraft] = useState('')
const [todos, setTodos] = useState<Todo[]>([])
const add = () => {
if (draft === '') return
setTodos([...todos, { id: todos.length + 1, text: draft }])
setDraft('')
}
return (
<View style={{ gap: 8, padding: 16 }}>
<TextInput value={draft} onChangeText={setDraft} onSubmitEditing={add} placeholder="New todo" />
<Button title="Add" onPress={add} />
<FlatList
data={todos}
keyExtractor={(t) => String(t.id)}
renderItem={({ item }) => <Text>{item.text}</Text>}
/>
</View>
)
}import { For } from '@pyreon/core'
import { Button, Field, Scroll, Stack, Text } from '@pyreon/primitives'
import { signal } from '@pyreon/reactivity'
type Todo = { id: number; text: string }
export function Todos() {
const draft = signal('')
const todos = signal<Todo[]>([])
const add = () => {
if (draft() === '') return
todos.set([...todos(), { id: todos().length + 1, text: draft() }])
draft.set('')
}
return (
<Stack gap="sm" padding={4}>
<Field value={draft()} onChangeText={(t) => draft.set(t)} onSubmit={add} placeholder="New todo" />
<Button onPress={add}>Add</Button>
<Scroll>
<For each={todos()} by={(t) => t.id}>
{(t) => <Text>{t.text}</Text>}
</For>
</Scroll>
</Stack>
)
}Pyreon side: typechecked against the repo; lowered by the native compiler with the first-party plugins to SwiftUI (VStack, TextField, ScrollView { LazyVStack }) and Compose (Column, TextField, LazyColumn) with zero warnings; the Swift output passed the repo's SwiftUI typecheck. React Native side: written against the React Native core components; not compiled here.
What you stop writing.
- stop writingStop writing:
useStatepairs,useMemo,useCallback, dependency arraysInstead: Signals andcomputed; the screen component runs once. - stop writingStop writing:
StyleSheetpixel valuesInstead: Theme tokens:padding={4},gap="sm". - stop writingStop writing:
keyExtractorplusrenderItemInstead:<For each by>inside<Scroll>, which becomes a lazy list on iOS and Android.
Coming from React Native and Expo?
There is no compat layer for React Native. The guide maps View, Text, Pressable, Expo Router and the expo-* modules to Pyreon, and lists what does not carry over.
When to pick React Native or Expo
- You ship logic fixes over the air between store reviews: that is EAS Update, and compiled native code cannot do it.
- You depend on many third-party native SDKs and have no time to write bridges.
- Your app is graphics-heavy or animation-led (Reanimated, Skia).
- You must ship a production store app next quarter: Pyreon's native targets are experimental.
One codebase, three platforms. Try it.
npm create @pyreon/multiplatform@latest