How to use the victory-chart/src.VictoryLine.defaultProps function in victory-chart

To help you get started, we’ve selected a few victory-chart examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FormidableLabs / victory-chart-native / lib / components / victory-line.js View on Github external
import React from "react";
import { Dimensions, Platform } from "react-native";
import { VictoryLine } from "victory-chart/src";
import { VictoryLabel, VictoryContainer, VictoryClipContainer, Curve } from "victory-core-native";

export default class extends VictoryLine {
  static defaultProps = {
    ...VictoryLine.defaultProps,
    dataComponent: ,
    labelComponent: ,
    containerComponent: ,
    groupComponent: ,
    width: Dimensions.get("window").width
  };

  shouldAnimate() {
    return (Platform.OS === "android") ? false : Boolean(this.props.animate);
  }

}