React Native Ranking Bars (classic) for Expo

Leaderboards with animated widths.

Also known as: ranking bar chart, leaderboard chart, horizontal bar chart.

<HorizontalBarChart />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

Rows.

ChartPoint[]—
sort

Sort descending.

booleantrue

FAQ

How do I make a ranking bar chart in React Native?
Use ExpoKit's Ranking Bars (classic): install the expo-charts package (npx expo install expo-charts react-native-svg) and render <HorizontalBarChart data={…} />. It's animated and touchable, and works on iOS, Android, web and in Expo Go.
Does Ranking Bars (classic) 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 Ranking Bars (classic) free?
Yes. Ranking Bars (classic) is in expo-charts, which is free and MIT-licensed.