Skip to content

Commit

Permalink
rename props
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitBhalla committed Aug 23, 2021
1 parent 6fe62f8 commit f98b60d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ Arc Slider without center text
| `trackRadius` | number | `100` | Radius of Circular Slider |
| `thumbRadius` | number | `12` | Size of Thumb |
| `trackWidth` | number | `5` | Size of Track |
| `value` | number | `0` | Value between minimumValue to maximumValue |
| `minimumValue` | number | `0` | Minimum value |
| `maximumValue` | number | `100` | Maximum value |
| `value` | number | `0` | Value between minValue to maxValue |
| `minValue` | number | `0` | Minimum value |
| `maxValue` | number | `100` | Maximum value |
| `onChange` | ((angle: number) => any) | `none` | onChange Handler |
| `trackColor` | string | `#2089dc` | Color for Track |
| `trackTintColor` | string | `#e1e8ee` | Color for Track Tint |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rn-arc-slider",
"version": "0.0.1",
"version": "0.0.0",
"description": "Arc Slider Component for React Native using React Native Svg",
"main": "dist/index.js",
"files": [
Expand Down
12 changes: 6 additions & 6 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export type CircularSliderProps = {
thumbRadius?: number;
/** Size of Track */
trackWidth?: number;
/** Value between minimumValue to maximumValue */
/** Value between minValue to maxValue */
value?: number;
/** Minimum value */
minimumValue?: number;
minValue?: number;
/** Maximum value */
maximumValue?: number;
maxValue?: number;
/** onChange Handler */
onChange?: (angle: number) => any;
/** Color for Track */
Expand Down Expand Up @@ -51,8 +51,8 @@ const CircularSlider: React.FC<CircularSliderProps> = ({
trackTintColor = "#e1e8ee",
trackColor = "#2089dc",
value = 0,
minimumValue = 0,
maximumValue = 100,
minValue = 0,
maxValue = 100,
minAngle = 0,
maxAngle = 359.9,
onChange,
Expand All @@ -67,7 +67,7 @@ const CircularSlider: React.FC<CircularSliderProps> = ({
}) => {
const location = React.useRef({ x: 0, y: 0 });
const viewRef = React.useRef<View>(null);
const valuePercentage = ((value - minimumValue) * 100) / maximumValue;
const valuePercentage = ((value - minValue) * 100) / maxValue;

const { current: panResponder } = React.useRef(
PanResponder.create({
Expand Down

0 comments on commit f98b60d

Please # to comment.