Skip to content

v5.0.0-rc.0 — Skia 3 preview

Pre-release
Pre-release

Choose a tag to compare

@brandtnewlabs brandtnewlabs released this 04 Nov 21:58

Opt-in release candidate for the new react-native-skia 3.9.1 renderer. Stable latest remains 4.30.2 on Shopify Skia.

Choose Install
Stable 4.x npm install react-native-livechart@4 @shopify/react-native-skia@2.6.4
Test Skia 3 npm install react-native-livechart@next react-native-skia@3.9.1

When migrating, first remove @shopify/react-native-skia, rename renderer imports, reinstall iOS pods where applicable and rebuild the native app. Install only one renderer package. The RC requires React 19+, React Native 0.79+, iOS 15.1+ or Android API 26+ with Vulkan 1.1; use a native build rather than Expo Go.

Installation and migration · Report an issue

Verification limits: fresh physical Android 3.9.1 QA remains outstanding. Performance measurements predate the 4.30.2 integration; the documented multi-series CPU tradeoff and delivered-FPS uncertainty remain.

Released under next with Skia 3.9.1 and the full 4.30.2 baseline.
Stable npm latest remains 4.30.2.

Included from stable 4.x

  • Bring the complete 4.30.2 baseline into 5.x: loading.freezeAfterMs, badge
    padding alignment, explicit viewport.range and recorded endpoints,
    experimental priceScroll and reset-view controls, LiveChartHandle.resetView(),
    snap/framing and indicator fixes, and display-frame live-dot pulses.
  • Keep 4.x supported with the Shopify renderer. During the RC period, npm's
    latest stays on 4.30.2; this release candidate is published exclusively under next.

Breaking

  • Replace the @shopify/react-native-skia peer with react-native-skia@^3.9.1.
    Apps must migrate their renderer imports and font/image types, install one
    native Skia package, and rebuild. React 19+ and React Native 0.79+ are now
    required. Maintained Skia v2 support is not declared in this candidate.

Changed

  • Migrate all runtime, example, mock, and declaration imports to
    react-native-skia 3.9.1 (Graphite).
    Existing published LiveChart 4.x releases keep the Shopify peer.
    Native iOS and Android/Vulkan verification is tracked in
    #409.

  • Add an explicit publish:lib:next command and a prepublish check that requires
    the configured release-line tag (next for this RC). Stable latest remains 4.x.

  • Use the published, unmodified Skia 3.9.1 renderer. The experimental native
    glyph-atlas patch was removed from the example and package before release;
    the measurements do not establish an allocation regression from Skia 2.6.4.

  • Preserve Android canvas composition through explicit android.backingView
    and android.opaque options. Build marker and particle atlases from shared
    GPU snapshots, avoiding the now-asynchronous CPU readback helper.

Fixed

  • Example app: enable outward Y-range easing in Multi-series so revealing a
    series or extending the range animates instead of jumping. Add an
    "Animate expansion" control beside Responsiveness and start with its Smooth
    preset to spread large range changes across more visible steps.
  • Example app: give Kraken's header matching left/right widths so the centered
    title no longer overlaps the Back button's Android touch area.

Maintenance

  • Align the example app's native dependencies with Expo 57.0.31, deduplicate native
    modules, and refresh the Metro Bundle Mode patches for 0.84.5. Pin the test
    renderer to the version compatible with React 19.2, and check Expo dependency
    versions, TypeScript, and lint in CI.

Performance

These measurements predate the 4.30.2 integration. They document the accepted
renderer tradeoff, not a new benchmark of the final RC package.

  • Avoid redundant native transforms for stationary custom reference tags by
    narrowing the positioning worklet's captured inputs. Three new paired iPhone
    runs average 55.47% CPU before and 54.35% after (-2.0%), with a
    small change in two pairs. The full multi-series regression remains: the
    optimized candidate uses 5.3% more CPU than Shopify in this cohort.
    See docs/performance-multi-series-cpu-investigation-iphone.md.

  • Compare the 3.9.1 candidate against published LiveChart 4.30.2 with Shopify
    Skia 2.6.4 in 18 new iPhone Release captures. CPU changes are -24.4% line,
    -16.8% candle and +11.3% multi-series; physical memory falls 54–67%.
    The multi-series CPU tradeoff and delivered-FPS uncertainty remain. See
    docs/performance-shopify-vs-skia-3.9.1-iphone.md.

  • Re-measure Skia 3.9.1 against 3.3.0 in 18 matched-toolchain iPhone Release
    captures. Average CPU changes are -3.9% line, -1.8% candle and +0.1%
    multi-series; memory changes stay below 1%. Delivered frame pacing remains
    unresolved because of compositor attribution gaps. See
    docs/performance-skia-3.9.1-iphone.md.

  • Fit the first measured, visible LiveChartSeries data immediately, including
    with animated expansion or an initially empty feed. Subsequent updates keep
    their configured easing. Initialize compact metadata on the first render and
    avoid seventeen derived-value mappers for fixed engine props. On Lennart’s
    iPhone 16, fully framed UI geometry fell from median 3,369 ms to 117 ms across
    nine Release launches per variant. This adds a Y-range readiness condition to
    the earlier mount metric; it does not measure first pixels or steady-state CPU.
    See docs/multi-series-mount-performance-iphone.md for the comparison.

  • Reduce LiveChartSeries mount work by sharing a compact presentation snapshot
    across layout and legend, bootstrapping it before paint, and initializing the
    particle runtime only while degen is enabled. The demo seeds its feed before
    the first commit and defers its control panel. On Lennart’s iPhone 16, median
    chart geometry readiness fell from 138.5 ms to 104 ms in Release builds;
    this measures UI readiness, not compositor delivery or steady-state CPU.
    See docs/multi-series-mount-performance-iphone.md for the comparison.