npm.io
43.0.1 • Published 2 weeks ago

victory-native

Licence
MIT
Version
43.0.1
Deps
5
Size
776 kB
Vulns
0
Weekly
0
Stars
1.2K

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.1+), 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.1

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.1, 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.