react-native-graph draws animated line charts in React Native using Shopify Skia. It targets smooth scrolling lists and wallet-style price history views.
Overview
LineGraph renders time-series data as curves with optional gradients, indicators, and pan-to-scrub gestures. Points use Date on the horizontal axis and numbers on the vertical axis; you supply ordered GraphPoint arrays from your own API or state.
Animations run on the UI thread through Skia path interpolation, with claims of high frame rates and cubic-bezier smoothing. A static renderer exists for many simultaneous graphs in lists, while animated mode supports pan gestures, selection dots, and axis label slots.
Installation pulls in react-native-reanimated, react-native-gesture-handler, and @shopify/react-native-skia as peers. An Expo example runs in Expo Go on SDK 57 without a custom dev client when compatible dependency versions are used.
The library does not fetch market data; it focuses on drawing performance so navigation and scroll gestures stay responsive, as used in the Bamboo app for token charts.
Key features
- Skia-based line graph rendering
- Animated and static render modes
- Pan scrubbing with selection dot
- Cubic bezier line smoothing
- Gradient fill under the line
- Configurable axis ranges and padding
- Last-point indicator with pulse option
- Expo Go example project
Use cases
- Crypto wallet price charts
- High-FPS scrollable graph lists
- Token or stock history visualization
- Interactive scrubbing through time series
- Mobile apps needing lightweight charts