Skip to content

About

A 2026 mobile development framework: TSX screens drawn by Jetpack Compose and SwiftUI, logic on Hermes, OTA updates built-in.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

zero-native: native Android and iOS apps from TSX, drawn by Jetpack Compose and SwiftUI

License: Apache-2.0 npm Maven Central Android 7.0+ and iOS 17+

Get started · Docs · Coming from React Native · Numbers · Contributing

zero-native builds native Android and iOS apps from TypeScript and TSX, with no React and no bridge at runtime.

  • 📐 The OS does the layout. Your screens are drawn by Jetpack Compose on Android and SwiftUI / UIKit on iOS. No Yoga, no web view, no layout engine of our own.
  • 📦 Small apps. About half the size of the same app in React Native: 16.9 MB against 34.7 MB for a chat app, and a 4.9 MB App Store download for the sample.
  • ⚡ Fast starts. Each screen is compiled to a native template that is drawn before JS has started; logic runs as Hermes bytecode. Messages on screen in 457 ms against React Native's 656 ms, on a mid-range Android phone.
  • 🔄 Over-the-air updates built in. Signed bundles, patches of a few KB, staged rollouts, rollback and a kill switch, with a self-hosted update server and dashboard.

Example

import { signal } from "@zeronative/core"
import { Pressable, Text, View } from "@zeronative/ui"

export function HomeScreen() {
  // Runs once. When count changes, only the text that reads it is drawn again.
  const count = signal(0)

  return (
    <View style={{ flex: 1, justifyContent: "center", padding: 24, gap: 12 }}>
      <Text style={{ fontSize: 28, fontWeight: 700 }}>{count()} taps</Text>
      <Pressable
        onPress={() => count.set(count() + 1)}
        style={{ padding: 14, borderRadius: 12, backgroundColor: "#2563EB" }}
      >
        <Text style={{ color: "#FFFFFF", fontWeight: 600 }}>Tap me</Text>
      </Pressable>
    </View>
  )
}

View, Text, Pressable, FlatList, style and onPress mean what they mean in React Native. A style key that isn't supported fails the build, with the file and line.

Quick start

bunx @zeronative/cli new my-app
cd my-app
bun install
bun run android      # or, on a Mac: bun run ios

Then bun run dev sends each saved change to the app on the phone in under a second. You need Bun 1.3+, Android Studio for Android, and a Mac with Xcode 26 for iOS. The getting started guide covers the full setup.

Coming from React Native? Read what is the same, renamed or different (from Flutter).

What's in the box

Components Column, Row, Stack, Scroll, List (virtualized), TextField, Image, Svg, Sheet, Modal, Tabs and React Native names such as View and FlatList
Navigation typed routes, push / modal / fade, bottom tabs, deep links, screens restored after the OS kills the app
Motion and gestures animations, gestures, layout animation and shared elements, on the UI thread with no JS per frame
Data fetch, WebSocket, storage, secure storage, and flows that survive the app being killed (a payment that leaves for another app)
OTA updates signed bundles, bsdiff patches, rollout, rollback, kill switch, an update screen for urgent fixes, zn-updates server
Plugins scanner, document scanner, PDF, WebView, image viewer, Lottie, location, media, notifications, Firebase and more
Releasing Google Play and App Store builds with OTA updates, crash symbols, startup profile

Status

zero-native is 0.1 (pre-1.0: APIs can still change). Packages are on npm (@zeronative/*), Maven Central (io.github.zero-native) and Swift Package Manager. Android 7.0+ and iOS 17+.

It runs in production: the ZeroBill payments app, used mostly on low-cost Android phones in India, is built on it on Google Play and the App Store. Android is the reference; what still differs on iOS is in platform differences. What changed in each version is in the changelog.

Learn more

  • Numbers we measured: size, start time, memory and scrolling against React Native, and on iOS.
  • Architecture: how the compiler, the templates and the native renderers work.
  • All docs: guides, reference and the project's history.
  • Contributing: build the framework and its sample app from this repository.
  • The story: why zero-native exists and how it was built.

License

Apache License 2.0. See LICENSE, NOTICE and THIRD_PARTY_NOTICES.md.

About

A 2026 mobile development framework: TSX screens drawn by Jetpack Compose and SwiftUI, logic on Hermes, OTA updates built-in.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages