Installation
Pro charts ship as a licensed package that is installed next to the public
react-native-chart-kit package. Keep the public package installed because Pro
charts share the same theme provider, renderer defaults, and React Native SVG
peer dependency.
@chart-kit/pro is publicly installable from npm. Production use requires a
valid Chart Kit Pro license.
React Native CLI
npm install react-native-chart-kit @chart-kit/pro react-native-svgFor iOS apps, install native pods after installing dependencies:
cd iospod installExpo
Install the packages and let Expo choose the compatible react-native-svg
version:
npm install react-native-chart-kit @chart-kit/pronpx expo install react-native-svgImports
Modern public charts import from react-native-chart-kit/v2. Pro chart
examples import from @chart-kit/pro.
import { LineChart } from "react-native-chart-kit/v2";import { ComboChart } from "@chart-kit/pro";