expo-victory

React Native Victory Charts in managed Expo app


Keywords
expo, react-native, victory, victory-native
License
MIT
Install
npm install expo-victory@32.0.1

Documentation

Expo Victory

React Native Victory Charts in managed Expo app

Introduction

If you have trouble trying victory-native with Expo, maybe you should try this. Since managed Expo app have react-native-svg pre-installed, using react-native-svg might cause an Error:

Error: tried to register two views with the same name rnsvgrect

This repository rewrites the component with Expo svg components in TypeScript, hopefully solving the problem for you.

Usage

Install expo-victory:

$ npm install expo-victory: --save

or

$ yarn add expo-victory

Import charts from victory-native. For example,

import React, { Component } from "react";

import { VictoryBar } from "expo-victory";

class App extends Component {
  render() {
    return (
      <VictoryBar />
    );
  }
}

export default App;

Documentation

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

License

MIT, see the LICENSE file for details.