Sparkline
A small trend line, drawn with react-native-svg. Decorative unless given an accessibilityLabel that says what the trend is.
Examples
Loading examples…
API
From COMPONENTS.md; setup for every native component is on React Native.
| Component | Notes |
|---|---|
Sparkline |
Native counterpart of web Sparkline — same props, plus accessibilityLabel (without one it's decorative). Requires react-native-svg. |
import { Sparkline } from 'achery-ui/native'
<Sparkline data={[3, 5, 4, 8]} tone="positive" accessibilityLabel="Up from 3 to 8" />