# Changelog

What changes for app authors in each release. One version covers everything: the npm packages (`@zeronative/*`),
the Android libraries (`io.github.zero-native:*`) and the Swift packages.

## 0.1.1 (2026-12-03)

### Added
- **More React Native style keys and List events**, from porting an RN chat app (registry 25):
  `borderTopColor` and `borderBottomColor`; on `<Text>`, `textShadowColor`, `textShadowOffset`, `textShadowRadius` and
  `fontVariant` (`"tabular-nums"` and others); `onStartReached` on `<List>`, to page newer rows back into a chat that
  keeps a window of rows. A bundle that uses them needs an app built with 0.1.1; an older app keeps its own bundle.

### Changed
- **A new app follows the phone's light or dark setting**, as a new React Native app does (A107). `zn new` makes the
  Android window theme with a night variant, leaves `UIUserInterfaceStyle` out of the iOS `Info.plist`, and the
  template's screens draw their colours and status bar icons with `scheme()`. Existing apps don't change. An app with
  light screens only: keep `UIUserInterfaceStyle` Light on iOS and a light AppTheme on Android.

### Fixed
- **A `<List>` row that isn't drawn yet is blank during a fast scroll.** A row component that returns another
  component (`TextRow` returning `<Line>`) had no row type, so the list drew the file's first template (often a whole
  screen) in its place until the row was built; on iOS it also kept those, so memory grew with every new row.
- **iOS: a `<List>` whose rows change no longer grows in memory.** UIKit's cell prefetching left a hidden cell behind
  each time a row was added above one it had prepared (each new message in a chat), with its content, and never reused
  it: about 0.4 MB a message and rising CPU in the chat port, and once a list of blank rows. Prefetching is off; JS
  mounts rows ahead itself and images are loaded ahead. The chat port at rest: 60 → 64 MB over two minutes.
- **An absolute child of a padded `<Stack>` is placed from the padding box (inside the border), as in React Native.**
  `end: -6` in a bubble with `paddingHorizontal: 11` now sits 6 dp past the bubble's edge; before, the insets counted
  from inside the padding, so it landed 5 dp inside. A Stack with no padding doesn't change.
- **`insets().bottom` is 0 while a docked keyboard is up**, so a composer or bottom bar padded with it sits on the
  keyboard (as React Native's KeyboardStickyView), instead of the navigation bar's or home indicator's height above it.
- **A `<Sheet>` whose `backgroundColor` changes at runtime** (`scheme()`, a signal) paints its whole surface in that
  colour, the handle's row and the room under the content too, on Android and iOS. Before, only the content did: a
  white strip on top of every dark-mode sheet.
- **`const s = StyleSheet.create({...})` at the top of a file no longer crashes the screen at start**
  (`ReferenceError: Property 'StyleSheet' doesn't exist`), the form the styling guide shows (G1).
- **A style value imported from a `.tsx` file now fails the build with a clear message**: it names the import and
  says to move it to a `.ts` file, which the compiler reads at build time (G2).
- **`onEndReached` fires again after the user leaves the end of a `<List>` and comes back, also when the row count
  is the same** (G0), on Android and iOS. A chat that keeps a fixed window of rows (a page in, a page out) got stuck at the top.
- **Android: `keyboardDismissMode="interactive"` does no keyboard work on a drag when no field has focus** (G6).
  Before, every drag asked the keyboard to show and hide.
- **A gesture's `onSettle` comes only when its spring got to the anchor** (A136, as React Native Animated's
  `finished: false`). A ♥ tapped while a flicked card flies out no longer counts a skip.
- **Android: a rotated `TextField` takes taps across its own box** (A132). The part drawn past its box still doesn't.
- **Android: a `<Sheet>` moves up with the keyboard** (A139), so a field in it stays above the keyboard; it slides back
  down when the keyboard closes. A full-height sheet can't go higher, so its bottom part can still sit under the keyboard.
- **Android: a growing field keeps its whole box above the keyboard** (A138), as on iOS: typing at the end of a
  composer low in a `<Scroll>` or a `List` keeps its bottom edge and the Send button beside it in view, not only the line
  being typed.
- **Android: a hardware Enter on a form's last field closes the keyboard** (A129), as the on-screen Next key does,
  instead of jumping back to an earlier field.
- **Android: a new app in dark mode shows no light frame as it starts** (A107): the template's host colour behind the
  first screen follows the phone.
- **`zn <command> --help` (and `-h`, `zn help <command>`) prints that command's flags** for every `zn-updates`
  command and `zn build`, instead of a stack trace. An unknown flag prints one line and the command's help.
- **`zn status` shows each channel's priority (normal too) and which bundles are marked for delete.**
- **A new app's `bun run ios --device <name>` boots that simulator** when it isn't running, and says so when the name
  is wrong, instead of failing in `simctl install`.

## 0.1.0 (2026-11-29)

The first release. Pre-1.0: APIs can still change.

### What you get
- **Screens in TSX**, compiled to binary templates and Hermes bytecode, drawn by Jetpack Compose on Android and
  SwiftUI / UIKit on iOS. Signals update only what changed; there is no React and no virtual DOM at runtime.
  [Core concepts](https://zero-native.github.io/zero-native/get-started/core-concepts/).
- **Components** (`@zeronative/ui`): `Column`, `Row`, `Stack`, `Box`, `Scroll`, `Text`, `Pressable`, `TextField`,
  `OtpInput`, `Image`, `Icon`, `Svg`, `Canvas`, `Switch`, `Checkbox`, `Spinner`, `Progress`, `Shimmer`, `Tabs`,
  `Sheet`, `Modal`, `Carousel`, `StatusBar`, `NativeView`, and React Native names such as `View`, `FlatList` and
  `TouchableOpacity`. `Alert` and `toast` come from `@zeronative/core`. A style key that isn't supported fails the
  build. [Components](https://zero-native.github.io/zero-native/guides/components/), [Styling and layout](https://zero-native.github.io/zero-native/guides/styling-and-layout/).
- **Navigation**: typed routes, push, modal and fade transitions, bottom tabs, deep links, back handling, and screens
  restored after the OS kills the app. [Navigation](https://zero-native.github.io/zero-native/guides/navigation/).
- **Lists**: `<List>` (or `<FlatList>`) is virtualized, with row kinds, grids, inverted lists, sticky headers,
  pull-to-refresh, drag to reorder and scroll commands. [Lists](https://zero-native.github.io/zero-native/guides/components/#5-virtualized-lists).
- **Motion and gestures** on the UI thread, with no JS per frame: `animate`, `enter` and `exit`; `useMotion`,
  `derive()`, `usePan` and the other gestures, `animateLayout` and `sharedTag`. On both OSes.
  [Motion and gestures](https://zero-native.github.io/zero-native/guides/motion-and-gestures/).
- **Data**: `fetch` (OkHttp on Android, URLSession on iOS: timeouts, `FormData`, progress), `WebSocket`, `storage`
  and `persistedSignal` (MMKV), `SecureStore` (Android Keystore, iOS Keychain), and `FlowStore` for a multi-step flow
  that must survive the app being killed. [Data and networking](https://zero-native.github.io/zero-native/guides/data-and-networking/).
- **OTA updates**: signed bundles and channel pointers (ECDSA P-256, with a backup key), and a phone only takes a
  bundle it can run. Rollback, kill switch, staged rollout, bsdiff patches, a launch gate for critical updates, and
  an update check started by a silent push. `zn-updates` is the self-hosted server: Bun, Postgres, a folder or Google
  Cloud Storage, and a web dashboard. [OTA updates](https://zero-native.github.io/zero-native/guides/ota-updates/).
- **Plugins** (20): scanner, document scanner, PDF, WebView, image viewer, Lottie, Markdown (JS only), location,
  media, notifications, device info, app updates, Android Play auth, Android ad id (Android only), and Firebase: app,
  Crashlytics, Analytics, Messaging, Remote Config and Performance. On iOS, the Firebase plugins and Lottie are Swift
  packages of their own (`zero-native-firebase`, `zero-native-lottie`), so an app downloads only the SDKs it uses.
  [Plugins](https://zero-native.github.io/zero-native/guides/plugins/).
- **The `zn` command** (`@zeronative/cli`, runs on Bun 1.3+): `zn new` makes an app with an Android and an iOS host;
  `zn dev` live-reloads to an Android phone, the iOS simulator, and with `--lan` an iPhone on the same Wi-Fi;
  `zn build` builds the JS bundle; `zn release`, `zn store-build`, `zn status` and the other commands drive
  `zn-updates`. [Getting started](https://zero-native.github.io/zero-native/get-started/), [tools/README.md](https://github.com/zero-native/zero-native/blob/main/tools/README.md).
- **Android 7.0 (API 24) and later; iOS 17.0 and later.** Android is the reference. iOS has every feature in the
  parity table; what still differs is listed in [Platform differences](https://zero-native.github.io/zero-native/guides/platform-differences/).
  Building needs AGP 9.2, Kotlin 2.4, compileSdk 37 and Java 21 for Android, and Xcode 26 for iOS.

### Known issues
- **iOS: a server close right at connect can be lost on an iPhone.** JS gets `close` 1006 instead of the server's
  code and reason, and the messages sent with it are dropped. A socket that is already open is not affected. Turn a
  bad token away in the handshake (HTTP 401) instead. 0.1.0 keeps `URLSessionWebSocketTask`.
  [fetch.md §8](https://zero-native.github.io/zero-native/reference/fetch/#8-websocket-shares-the-fetch-client).
- **`zn ota` and `zn server` need a zero-native checkout.** From npm they stop and say so; `bunx @zeronative/cli new`
  works from npm. [tools/README.md](https://github.com/zero-native/zero-native/blob/main/tools/README.md).
- **iOS: a field at the very end of a `<Scroll>`** (nothing under it) can stay under the keyboard on iOS 17 and on
  an iPhone with iOS 18.7, because the Scroll can't scroll past its end. Put some room under such a field, or pin it
  under a List. To fix in 0.1.1.
  [Platform differences](https://zero-native.github.io/zero-native/guides/platform-differences/).
- **Android: a `Sheet` doesn't rise with the keyboard**, so a text field in it can be hidden behind the keyboard
  (A139). A growing multiline field low in a `<Scroll>` or a `List` keeps its line being typed in view, but its
  bottom edge and a Send button beside it can sit just under the keyboard (A138). A field pinned under a List or in a
  `Modal` is not affected.
- **Android: a link span that wraps onto a second line** inside a tappable row also takes the taps on the row's words
  around it (A137).
- **iOS: checked on the simulator only**, not yet on an iPhone: secure screens under a real screenshot or recording,
  and motion cost on a 120 Hz screen. A real background launch, an OTA rollback and a 200 MB upload passed on an
  iPhone 11 on 2026-11-29.
  [Platform differences §3](https://zero-native.github.io/zero-native/guides/platform-differences/#before-you-ship-to-ios-the-ones-that-matter-most).
