Quickstart
Install the public package in your React Native app. Do not install
@chart-kit/* packages directly; those are repo-internal workspaces.
React Native CLI
npm install react-native-chart-kit react-native-svgFor iOS apps, install native pods after installing dependencies:
cd iospod installExpo
Install the package and the Expo-compatible react-native-svg version:
npm install react-native-chart-kitnpx expo install react-native-svgBaseline tap, scrub, pan, pinch zoom, and range-selector interactions use React Native responder APIs, so new apps do not need a gesture-handler wrapper just to render or inspect charts.
First Modern Chart
New screens can import the modern v2 API from the public package subpath.
import { LineChart } from "react-native-chart-kit/v2";
const data = [
{ month: "Jan", revenue: 52 },
{ month: "Feb", revenue: 86 },
{ month: "Mar", revenue: 58 },
{ month: "Apr", revenue: 134 },
{ month: "May", revenue: 95 },
{ month: "Jun", revenue: 176 }
];
export function RevenueChart() {
return (
<LineChart
data={data}
xKey="month"
yKey="revenue"
width={360}
height={240}
preset="analytics"
/>
);
}The root import remains the legacy-compatible surface for existing screens.