For production use, the package is automatically compiled after installation, so that you can just install it withnpmand use it out-of-the-box. To transpile TypeScript into JavaScript for development purposes, you can use either runnpm run buildto compile once, ornpm run devto start compilati...
npm npm install react-native-chart-kit@^6.12.0 yarn yarn add react-native-chart-kit@^6.12.0 下面的代码展示了这个库的基本使用场景: [!WARNING] 使用时 import 的库名不变。 import React from 'react'; import { View, Dimensions, StyleSheet } from 'react-native'; import { LineChart } fro...
You'll need to have expo-cli installed via npm install -g expo-cli. React Native Chart Kit Documentation Import components yarn add react-native-chart-kit yarn add react-native-svg install peer dependencies Use with ES6 syntax to import components import { LineChart, BarChart, PieChart, ...
You'll need to have expo-cli installed via npm install -g expo-cli. React Native Chart Kit Documentation Import components yarn add react-native-chart-kit yarn add react-native-svg install peer dependencies Use with ES6 syntax to import components import { LineChart, BarChart, PieChart, ...
npm install react-native-chart-kit@^6.12.0 yarn yarn add react-native-chart-kit@^6.12.0 下面的代码展示了这个库的基本使用场景: [!WARNING] 使用时 import 的库名不变。 importReactfrom'react';import{ View, Dimensions, StyleSheet }from'react-native';import{ LineChart }from'react-native-chart-...
git clone git@github.com:indiespirit/react-native-chart-kit.git cd react-native-chart-kit yarn install In order to run it, you are gonna have to flip values for "main" and "_main" in package json. This is nessesary because both npm and expo have a notion of a main file, but for...
📊React Native Chart Kit: Line Chart, Bezier Line Chart, Progress Ring, Bar chart, Pie chart, Contribution graph (heatmap) - assetcorp/react-native-chart-kit
This is nessesary because both npm and expo have a notion of a main file, but for npm it's the file that you run when you import this library in your app; and for expo it's the file that it uses to display the example app. Don't forget to flip it back before commiting. ...
.npmignore fix: Remove .babelrc from npm package (indiespirit#263) Feb 5, 2020 .prettierrc add prettier and eslint Sep 29, 2019 .watchmanconfig Initial commit Dec 20, 2017 App.js Add useShadowColorFromDataset param to the chartConfig (indiespirit#320) Apr 26, 2020 CHANGELOG.md Update ch...
JSchwichtenberg-ITSorce Fix render strokes at pie chart 0091c7d· Dec 6, 2019 History199 Commits promo src .babelrc .eslintrc.json .flowconfig .gitignore .npmignore .prettierrc .watchmanconfig App.js CHANGELOG.md LICENSE README.md app.json contributing.md data.js ind...