Skip to content

Commit

Permalink
Merge pull request #5 from cwnicoletti/feature/add-gradientStyle-2
Browse files Browse the repository at this point in the history
add: gradientStyle prop to <Gauge />
  • Loading branch information
cwnicoletti authored Mar 1, 2022
2 parents 5b99b53 + 2a91fe1 commit 0cfcca1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/Gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const Gauge = (props) => {
unfilledColor,
circleColor,
triangleTipColor,
gradientStyle,
} = props;

const prevCountRef = useRef();
Expand Down Expand Up @@ -147,6 +148,7 @@ const Gauge = (props) => {
<LinearGradient
colors={overallGradient}
style={{
...gradientStyle,
height: size,
width: size,
}}
Expand Down Expand Up @@ -256,6 +258,7 @@ Gauge.defaultProps = {
unfilledColor: 'grey',
circleColor: 'blue',
triangleTipColor: 'blue',
gradientStyle: {},
};

let styles;
Expand Down

0 comments on commit 0cfcca1

Please sign in to comment.