Skip to content

Releases

v0.2.1

Choose a tag to compare

@hannojg hannojg released this 01 Dec 22:57
15dcc7f

Features

  • Docs
    • add Vercel Web Analytics (02c7a18)
    • add light and dark GitHub README banners to the banners playground (72e7c0d)

Fixes

  • CLI
    • regenerate bindings when a type imported by a spec changes (#871)
    • explain the Bun requirement when launched with Node.js (#858)
  • Docs
    • stop the How it works sweep flickering in Safari (de003b7)
  • Ffigen
    • resolve typedef names in opaque pointer types (#876)
  • Navigation
    • release iOS navigators when React drops their screens (#885)
  • Renderer
    • allow Android scroll content to overflow within the viewport (#881)
    • release views from renders that never commit (#878)
    • clip Android ScrollView content at its edge (#863)

Performance

  • CLI
    • load command modules on demand (#797)
  • Hermes
    • use -O3 for Apple builds and Android Debug (#884)

Documentation

  • General
    • rewrite the README and move contributor docs to CONTRIBUTING.md (e6bcfe4)
    • remove the theme toggle from the site header (9c26327)
    • add a README banner that follows GitHub's light and dark theme (18c87e3)

Full changelog

v0.2.0

Choose a tag to compare

@hannojg hannojg released this 01 Dec 17:58
8610446

Stack screens now support native modal sheets on iOS and Android through presentation: 'modal'. Use sheetAllowedDetents, sheetInitialDetentIndex, sheetGrabberVisible, and sheetCornerRadius to configure the sheet. Modal options

New apps get the redesigned starter with bunx create-nitro-ui@0.2.0 MyApp. To upgrade an existing app, update its NitroUI SDK packages together to 0.2.0 and rebuild the native app.

Features

  • Core
    • add Linking.openURL (#847)
  • Create-nitro-ui
    • redesign the default starter app (#585)
  • Navigation
    • add sheet height, grabber and corner radius options to modal screens (#710)
    • present modal screens as bottom sheets on Android (#708)
    • present modal screens as sheets on iOS (#706)
    • add headerTintColor to stack screens (#714)
  • Renderer
    • add isNestedScrollingEnabled to ScrollView on Android (#707)
    • add Keyboard.dismiss (#824)

Fixes

  • Create-nitro-ui
    • pass the docs button its tap recognizer (#851)
  • Release
    • omit chore commits from release notes (#849)

Documentation

  • General
    • add a quick start and expand the app development guides (#850)
    • expand the layout guides and component prop references (#846)
  • Keyboard
    • document useKeyboardInset (#823)

Other changes

  • Dev
    • show the Android dev menu in Material's BottomSheetDialog (#709)

Full changelog

v0.1.0

Choose a tag to compare

@hannojg hannojg released this 01 Dec 17:05
a28093d

NitroUI 0.1.0 is the first stable release. NitroUI renders React to native iOS and Android views and runs app code on Hermes.

Start a new app with bunx create-nitro-ui@0.1.0 MyApp. For an existing NitroUI app, update its nitro-ui-* dependencies and any shared SDK packages it uses to 0.1.0, then rebuild the native app. Installation guide

Upgrading from an alpha

  • Android now lays out content edge to edge by default. Apply useSafeAreaInsets() where your app needs padding around system bars. Android change
  • The React Compiler runs on app code by default. Set "reactCompiler": false in app.json to opt out. React Compiler change
  • Pass an array to gestureRecognizers. Tap, pan, and long-press callbacks receive (recognizer, view). Gesture API change
  • Apps using the former react-nitro-* packages need to switch dependencies and migrate their iOS and Android hosts to native project revision 2. Native project upgrade guide

Features

  • Android
    • enable edge-to-edge by default (#825)
  • Bundler
    • run the React Compiler by default (#792)
  • CLI
    • add a React Native migration skill (#828)
  • Renderer
    • restore gesture recognizer arrays (#839)
    • read a view's frame in its window (#795)
    • add justify text alignment to Text (#817)
  • Runtime
    • apply a module's android/nitro-ui.gradle before build.gradle (#840)

Fixes

  • Bundler
    • show syntax errors with their location when the React Compiler is on (#830)
  • CLI
    • stop waiting for the first frame when launching on Android (#754)
    • pass the dev server when launching Debug builds (#753)
    • reuse the running Activity when Android launches the app again (#755)
  • Dev
    • remember a server passed at launch, except for test runs (#752)
  • Example
    • read Appearance.getColorScheme() on tap instead of during render (#791)
  • Renderer
    • iOS list showing first blank frames (#816)
    • animate only the properties an animation changes on Android (#812)

Performance

  • Dev
    • reuse the Android reload overlay between reloads (#719)
    • skip the refresh glow for fast hot updates (#718)
  • Renderer
    • skip unchanged box shadows and image filters (#842)
  • Runtime
    • download Android reload scripts before closing the old runtime (#720)

Documentation

  • General
    • switch the logo to the lowercase nitroUI wordmark (#832)
  • Performance
    • explain how to profile iOS list hitches (#820)
  • Skills
    • guide agents through missing NitroUI APIs (#821)

Other changes

  • Starter
    • restore create-nitro-ui package name (#819)
    • rename create-nitro-ui to create-nitro-app (#818)

Full changelog

v0.0.1-alpha.19

v0.0.1-alpha.19 Pre-release
Pre-release

Choose a tag to compare

@hannojg hannojg released this 01 Dec 11:33
a79f67f

Upgrading from React Nitro

React Nitro is now NitroUI. Most SDK packages now use the nitro-ui-* prefix. Networking, MMKV, FFI generation, and Hermes use nitro-networking, nitro-mmkv, nitro-ffigen, and nitro-hermes. New apps start with bunx create-nitro-ui.

Existing apps need native project revision 2 on iOS and Android. After switching package names, run bun run nitro-ui upgrade --json to see the migration for your project. Native project upgrade guide · Rename PR

Full changelog

v0.0.1-alpha.18

v0.0.1-alpha.18 Pre-release
Pre-release

Choose a tag to compare

@hannojg hannojg released this 01 Dec 10:39
6a6e664

Features

  • Android
    • support x86-64 Linux build hosts (#699)
  • Layout
    • support percentages for sizes and spacing (#701)
  • Navigation
    • handle Android system Back on the focused screen (#690)
  • Networking
    • stream response bodies (#725)
  • Renderer
    • control ScrollView inset adjustment on iOS (#783)
    • show or hide ScrollView scroll indicators (#782)
    • tint images with style.tintColor (#779)
    • rotate views with setRotation and style.rotate (#786)
    • position list anchors within the viewport (#688)
    • anchor lists by item identity (#644)
    • warn on slow list cell binds in development (#758)
    • expose the docked keyboard inset (#639)
    • make HybridImage public on iOS (#612)

Fixes

  • Layout
    • keep the full height of Starlight scroll view content (#693)
  • Networking
    • read Android bodies eagerly and decode declared charsets (#751)
  • Runtime
    • stop the Android splash screen from covering the dev launcher (#712)

Performance

  • Hermes
    • build Hermes with -O2 in Debug (#717)
  • Navigation
    • update Android tab items in place (#694)
  • Networking
    • read iOS fetch bodies in chunks from a data task (#696)
  • Renderer
    • skip measuring Android children at old frames when a group gets its frame (#700)
    • share one color scheme read and listener in useColorScheme (#698)
  • Runtime
    • load the Android runtime library in the background (#695)

Other changes

  • Android
    • cache native compilation across builds (#800)
    • run example app checks on the Hetzner x64 pool (#704)
  • App
    • run Android harness tests on ADC (#697)
  • Bundler
    • bump Rolldown to 1.3.4 (#692)
  • Example
    • turn the Animations screen into a property demo (#785)
  • General
    • share workflow artifacts through private S3 storage (#715)

Full changelog

v0.0.1-alpha.17

v0.0.1-alpha.17 Pre-release
Pre-release

Choose a tag to compare

@hannojg hannojg released this 26 Nov 19:34
b8b1291

Upgrading from alpha.16

  • If your app uses react-nitro-mmkv, import MMKV and replace createMMKV() with new MMKV(). For a named store, pass the same ID to new MMKV({ id }) to keep reading the existing data. Rebuild the native app after upgrading.

Features

  • Bundler
    • support native WebP image imports (#648)
  • Docs
    • add a landing page at the site root (#597)
  • Harness
    • add react-nitro-harness and react-nitro test (#680)
  • Layout
    • support native view aspect ratios (#681)
  • Release
    • group release notes by area (#675)
  • Renderer
    • text add textAlign prop (#656)
    • add native pull-to-refresh to vertical lists (#651)
  • Runtime
    • install ReadableStream (#629)
    • install URL and URLSearchParams (#627)
  • Storage
    • open MMKV stores with a native constructor (#677)

Fixes

  • Bundler
    • preserve initializers behind namespace re-exports (#676)
  • Layout
    • exclude unshipped Lynx files from the Starlight package (#684)
  • Release
    • wait for npm before creating the GitHub release (#658)
  • Renderer
    • track iOS image requests per view (#682)

Other changes

  • Harness
    • port MMKV and nitro-fetch tests to the example app (#685)
  • Release
    • tighten spacing in release note lists (#679)
    • use bold area labels in release notes (#678)

Full changelog

v0.0.1-alpha.16

v0.0.1-alpha.16 Pre-release
Pre-release

Choose a tag to compare

@hannojg hannojg released this 26 Nov 16:43
a638d02

Upgrading from alpha.15

  • The CLI now installs react-nitro-layout-starlight and uses Lynx Starlight by default. To keep Yoga, add react-nitro-layout-yoga@0.0.1-alpha.16 as a direct app dependency and set "layoutEngine": "react-nitro-layout-yoga" in app.json. Remove react-nitro-yoga if you installed it directly. Both providers use the new react-nitro-layout package. After updating your React Nitro packages, run bunx react-nitro prepare and rebuild the native app.
  • Custom native views now expose layoutNodePtr in place of yogaNodePtr. Renderer extensions can use getViewLayoutNode(view) in place of getViewYogaNode(view). Rebuild custom modules against the updated view spec.
  • On Android, NitroActivity now extends AppCompatActivity. If your existing app still uses the platform theme from the old starter, update the parent of ReactNitroTheme in android/app/src/main/res/values/styles.xml and any night-mode override to Theme.Material3.DayNight.NoActionBar. Apps with a compatible AppCompat theme can keep it.

Features

  • Android
    • use AppCompatActivity and a Material 3 theme (#601)
  • Example
    • follow dark mode in the example app colors (#603)
  • Layout
    • support Starlight and Yoga as build-time providers (#623)
  • Navigation
    • allow hiding the native stack header (#636)
  • Networking
    • send HTTP methods and request bodies (#625)
  • Renderer
    • support Yoga size bounds and axis margins (#642)
    • add Appearance.setColorScheme (#602)
    • render box and image drop shadows (#647)
    • support Yoga wrapping and gaps (#635)
  • Runtime
    • cancel native fetch requests with AbortSignal (#631)
    • support cloning fetch responses (#633)
    • support Headers in global fetch (#628)

Fixes

  • Dev
    • drop the unused react-nitro-runtime types from the tsconfig (#607)
  • Navigation
    • allow interactive pop with a hidden iOS header (#646)
    • update Android tab header listeners (#638)
  • Renderer
    • honor Android line height on every line (#652)
    • support Suspense and transition updates (#650)
    • clamp iOS container corner radii to bounds (#630)
  • Runtime
    • accept nullable Gradle extra property type (#632)

Performance

  • Android
    • compile the React framework with Static Hermes (#641)
  • Bundler
    • optimize lazy Nitro re-exports (#608)

Full changelog