React Native Sparkline for Expo

For KPI cards; the last point pulses.

Also known as: mini line chart, inline trend chart.

<Sparkline />1 variant

Live — the real React Native component rendered with react-native-web. Tap, drag and scrub it.

Installation

terminal
npx expo install expo-charts react-native-svg

Usage

Import the component and pass your data. Width defaults to the parent, so it adapts to phones, tablets and rotation.

Like this? There's a lot more in Pro Pro

12 full screens built from the same kit — install them the same way.

See what's in Pro

Props

PropTypeDefault
data

Values.

number[]—
showArea / showLastDot

Extras.

booleantrue / true

FAQ

How do I make a sparkline in React Native?
Use ExpoKit's Sparkline: install the expo-charts package (npx expo install expo-charts react-native-svg) and render <Sparkline data={…} />. It's animated and touchable, and works on iOS, Android, web and in Expo Go.
Does Sparkline work in Expo Go?
Yes. It draws with react-native-svg, which Expo Go includes, so it runs on iOS and Android with no development build.
Is Sparkline free?
Yes. Sparkline is in expo-charts, which is free and MIT-licensed.