Skip to content

v0.0.1-alpha.16

Pre-release
Pre-release

Choose a tag to compare

@hannojg hannojg released this 26 Nov 16:43
· 140 commits to main since this release
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