Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from "react";
import { Dimensions, Platform } from "react-native";
import { VictoryLabel, VictoryContainer, Area, VictoryClipContainer } from "victory-core-native";
import { VictoryArea } from "victory-chart/src";
export default class extends VictoryArea {
static defaultProps = {
...VictoryArea.defaultProps,
dataComponent: <area>,
labelComponent: ,
containerComponent: ,
groupComponent: ,
width: Dimensions.get("window").width
}
shouldAnimate() {
return (Platform.OS === "android") ? false : Boolean(this.props.animate);
}
}