Name: victory-native
Owner: Formidable
Description: victory components for react native
Created: 2016-07-22 21:45:58.0
Updated: 2018-01-18 11:17:12.0
Pushed: 2018-01-04 00:02:47.0
Homepage: null
Size: 440
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|---|---|
Tom Zmyslo | 2017-10-31 02:04:03.0 | 1 |
Omri Gilad | 2016-12-08 08:36:00.0 | 1 |
Ryan Roemer | 2017-12-20 19:49:23.0 | 3 |
Brian Mathews | 2016-09-20 15:47:12.0 | 4 |
Jani Eväkallio | 2017-03-22 17:26:41.0 | 6 |
Carlos Paelinck | 2018-02-27 15:53:56.0 | 7 |
Sibelius Seraphini | 2017-03-07 23:12:49.0 | 1 |
Chris Bolin | 2017-07-14 12:10:22.0 | 87 |
Lauren | 2018-03-14 22:47:09.0 | 126 |
Paito Anderson | 2017-10-01 19:32:00.0 | 1 |
Stefan Huynh | 2018-01-03 20:54:18.0 | 1 |
Rasmus Faddersbøll | 2017-11-10 15:04:10.0 | 1 |
Making GitHub Delicious. | 2016-07-24 02:39:32.0 | 1 |
Emma Brillhart | 2016-08-08 17:32:00.0 | 2 |
hasLandon | 2017-05-04 23:34:21.0 | 1 |
Other Committers
User | Most Recent Commit | # Commits |
---|
Install victory-native:
m install victory-native --save
Install react-native-svg:
m install react-native-svg --save
Link react-native:
act-native link react-native-svg
NOTE: Please read about Peer Dependencies and Version Requirements
Import charts from victory-native
. For example,
rt React, { Component } from "react";
rt { VictoryBar } from "victory-native";
s App extends Component {
nder() {
return (
<VictoryBar />
);
rt default App;
Note: victory-native
requires the following peer dependencies:
react-native-svg
react
react-native
Note: react-native-svg
has strict version requirements for both react
and react-native
. Please match versions to those required by react-native-svg
. See the up-to-date requirements on the react-native-svg Readme.
We encourage you to use the latest version of react-native-svg
possible for your project, as victory-native
issues are frequently solved by react-native-svg
bugfixes.
victory-native@~0.17.0
requires react-native-svg@^6.1.0
or react-native-svg@6.0.1-rc.1
victory-native@~0.16.2
requires react-native-svg@^6.1.0
or react-native-svg@6.0.1-rc.1
victory-native@~0.16.0
requires react-native-svg@6.0.0
~~ No longer supportedvictory-native@~0.15.0
requires react-native-svg@^5.0.0
~~ No longer supportedIf you'd like to contribute to victory-native
, you can use the local demo app to test your changes on the iOS simulator. (But if you're just getting started with victory-native
and want to see a demo, we recommend using victory-native-demo, as it supports Android and is simpler to set up.)
stall
m install -g react-native-cli # if you haven't already
t clone https://github.com/FormidableLabs/victory-native
victory-native
m install
art the react-native packager in a terminal that will remain running
m start
n the demo from a new terminal window
m run demo:ios
Changes to lib
will be reflected in the demo app.
Do not run npm install
in the demo/
directory, or the packager packager will crash due to
“duplicate @providesModule declarations” found in node_modules/
and demo/node_modules
.
See the docs and examples on the website https://formidable.com/open-source/victory/docs/native
This project is in a pre-release state. We're hard at work fixing bugs and improving the API. Be prepared for breaking changes!
SEMVER Minor version bumps should be considered breaking changes until we hit v1.0.0. Patches can be considered safe.
Please review our Code of Conduct before contributing.