FormidableLabs/victory-native

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

UserMost Recent Commit# Commits
Tom Zmyslo2017-10-31 02:04:03.01
Omri Gilad2016-12-08 08:36:00.01
Ryan Roemer2017-12-20 19:49:23.03
Brian Mathews2016-09-20 15:47:12.04
Jani Eväkallio2017-03-22 17:26:41.06
Carlos Paelinck2018-02-27 15:53:56.07
Sibelius Seraphini2017-03-07 23:12:49.01
Chris Bolin2017-07-14 12:10:22.087
Lauren2018-03-14 22:47:09.0126
Paito Anderson2017-10-01 19:32:00.01
Stefan Huynh2018-01-03 20:54:18.01
Rasmus Faddersbøll2017-11-10 15:04:10.01
Making GitHub Delicious.2016-07-24 02:39:32.01
Emma Brillhart2016-08-08 17:32:00.02
hasLandon2017-05-04 23:34:21.01

Other Committers

UserEmailMost Recent Commit# Commits

README

Stories in Ready

Victory Native

Usage

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;
Peer Dependencies and Version Requirements

Note: victory-native requires the following peer dependencies:

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.

Local Development and Demo

If 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.

Documentation

See the docs and examples on the website https://formidable.com/open-source/victory/docs/native

IMPORTANT

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.

Contributor Covenant Code of Conduct

Please review our Code of Conduct before contributing.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.