React Native Pixel Bars for Expo
Columns of squares that fill bottom-up, with ghost cells for the empty part.
Also known as: pixel bar chart, retro bar chart, 8-bit chart.
Pro<PixelBarChart />1 variantiOS · Android · Expo Go
Props
| Prop | Type | Default |
|---|---|---|
| data One block per category. | { label, value, color? }[] | — |
| height Chart height. | number | 240 |
| animate Entrance animation. | boolean | true |
| isLoading Skeleton state. | boolean | false |
| formatValue Value formatting. | (v) => string | compact |
| onSelect Tap callback. | (item, index) => void | — |
| levels Squares per column. | number | 10 |
| gap Gap between squares. | number | 2 |
| gradient Fade colour upwards. | boolean | true |
FAQ
How do I make a pixel bar chart in React Native?
Use ExpoKit's Pixel Bars: with ExpoKit Pro, the ExpoKit CLI copies the Pixel Bars source into your Expo or React Native app. It's animated and touchable, and works on iOS, Android, web and in Expo Go.
Does Pixel Bars 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 Pixel Bars free?
Pixel Bars is part of ExpoKit Pro. With a Pro plan, log the CLI in once (
npx @expokit/cli@latest login) and it installs the full source into your app.