Skip to content
项目

关于

专注于性能和可定制性的 React Native 图表库。

数据与分析

这些数字如何统计

实测星标增长

24小时
0
7天
+3
15天
+6
1个月
+5

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Victory Native

high-performance charts powered by D3, Skia, and Reanimated for React Native.

weekly downloads current version build status Maintenance Status

 

Installation

Requires React 19+, React Native 0.79+ with the New Architecture, Skia 2.x (2.15.5+), Reanimated 4.x (4.1.7+), Worklets 0.7+, and Gesture Handler 2 or 3. Choose compatible Reanimated and Worklets versions for your React Native version using the Reanimated compatibility table.

yarn add react-native-reanimated@^4.1.7 react-native-worklets "react-native-gesture-handler@^2 || ^3" react-native-skia@^2.15.5

For a bare React Native app, add "react-native-worklets/plugin" last in the plugins list in babel.config.js. Expo's babel-preset-expo configures it automatically. Rebuild your native app after installing the dependencies.

Then install victory-native:

yarn add victory-native

To get started and read more about the API, view the docs here.

Upgrading from the scoped Skia package

Remove @shopify/react-native-skia, install react-native-skia@^2.15.5, and update all Skia imports (including web/headless deep imports and test mocks) to react-native-skia. Do not install both packages: they contain the same native module. Reanimated 3 users must also migrate to Reanimated 4 and Worklets. Chart APIs are unchanged; Skia 3 is not supported by this release.

See the migration guide for the full upgrade steps, Babel configuration, and platform notes.

LICENSE

MIT

Maintenance Status

Active: Nearform is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.

探索相关项目

加载中…