Overview of react-native-livechart
mainreact-native-livechart
react-native-livechart is a high-performance library for rendering real-time line and candlestick charts in React Native. It is built using @shopify/react-native-skia, react-native-reanimated, and react-native-gesture-handler.
Key Performance Feature:
Data and live values flow through Reanimated SharedValues. This allows the chart to animate at native frame rates on the UI thread, avoiding per-frame traffic across the JavaScript bridge.
Core Capabilities:
- Line & Candlestick: Supports single-series line/area or OHLC candlestick modes with smooth morphing.
- Multi-series: Supports multiple live series with toggleable legends, per-series dots, and a shared crosshair.
- Scrubbing & Interaction: Includes a pan-able crosshair with a worklet-friendly
onScrubpayload and a price reticle for firing order callbacks viascrubAction. - Visual Effects: Features auto-detected momentum coloring, optional particle bursts, and screen shake on swings.
- Markers & References: Supports trade-fill markers, custom glyphs, and reference lines/bands.
- Theming: Provides light/dark themes with accent-driven palettes and per-key overrides.