Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #322 from FormidableLabs/use-dimension-for-victory…
Browse files Browse the repository at this point in the history
…-pie

use dimension for default width and height on VictoryPie
  • Loading branch information
boygirl authored Jun 13, 2018
2 parents b3ef8e1 + 3e56ce6 commit 0a67299
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/components/victory-pie.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { Dimensions } from "react-native";
import { G } from "react-native-svg";
import { VictoryPie } from "victory-pie/es";

import VictoryLabel from "./victory-label";
import VictoryContainer from "./victory-container";
import { Slice } from "../index";
Expand All @@ -11,6 +11,8 @@ export default class extends VictoryPie {
dataComponent: <Slice/>,
labelComponent: <VictoryLabel/>,
containerComponent: <VictoryContainer/>,
groupComponent: <G/>
groupComponent: <G/>,
height: Dimensions.get("window").width,
width: Dimensions.get("window").width
});
}

0 comments on commit 0a67299

Please sign in to comment.