Skip to content
Pyreon Native vs React Native

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 →
side by side

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
TopicPyreonReact Native and ExpoVerdict
UI on the deviceGenerated 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 UINone: the app is a native binary.The Hermes JavaScript engine.different
Web from the same sourceFirst-class: SSR, SSG, ISR, islands, SPA.react-native-web and Expo Router web; SSR is newer and still maturing.Pyreon
State modelSignals lower to @State / @Observable in SwiftUI and mutableStateOf in Compose.React's re-render model.different
Code outside the native subsetA 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 updatesNot possible for native logic: it is compiled.EAS Update ships JavaScript fixes between store reviews.React Native and Expo ahead
Third-party native SDKsFirst-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 deviceWeb: yes. Native: a rebuild per change, about 3 s warm with pyreon-native dev.Fast Refresh.React Native and Expo ahead
Build and submit serviceLocal xcodebuild and gradle.EAS Build, Submit and Workflows.React Native and Expo ahead
AnimationPlatform animation through <Transition>.Reanimated and Skia.React Native and Expo ahead
MaturityExperimental.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 →

how it works

The two stacks, drawn.

What runs on the phone: React Native and Pyreon Two stacks. React Native: your JavaScript bundle runs on the phone in the Hermes JavaScript engine, and React Native's renderer drives the platform widgets. Pyreon: your .tsx is compiled on your machine by PMTC into SwiftUI and Jetpack Compose source, Xcode and Gradle build a native binary, and the phone runs SwiftUI and Compose views with no JavaScript engine under the UI. The Pyreon native targets are labelled experimental. WHAT RUNS ON THE PHONE React Native Pyreon · PMTC EXPERIMENTAL on the phone your JavaScript bundle shipped inside the app Hermes JavaScript engine runs your code on the device React Native's renderer drives the native views platform widgets UIKit / Android views on your machine your .tsx the same file as the website PMTC → SwiftUI / Compose source Xcode and Gradle build a native binary on the phone native binary no JavaScript engine under the UI SwiftUI / Compose views the platform's own widgets Over-the-air updates, Fast Refresh and a larger SDK catalog stay with React Native. The full table is on this page.

Diagram, not a measurement.

How we measure →
same component

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.

React Native · Todos.tsx
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>
  )
}
Pyreon (web, iOS, Android) · Todos.tsx
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.

the code you delete

What you stop writing.

  • stop writing
    Stop writing: useState pairs, useMemo, useCallback, dependency arraysInstead: Signals and computed; the screen component runs once.
  • stop writing
    Stop writing: StyleSheet pixel valuesInstead: Theme tokens: padding={4}, gap="sm".
  • stop writing
    Stop writing: keyExtractor plus renderItemInstead: <For each by> inside <Scroll>, which becomes a lazy list on iOS and Android.
migration

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
The full comparison with Expo, Flutter, KMP and Capacitor