Skip to content

Commit 085b68b

Browse files
agunayfrancescovenica
authored andcommitted
Add wrapperStyle prop & testID
1 parent 38eb810 commit 085b68b

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

MultiSlider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ export default class MultiSlider extends React.Component {
658658
);
659659

660660
return (
661-
<View testID={this.props.testID}>
661+
<View style={this.props?.wrapperStyle} testID={this.props.testID}>
662662
{this.props.enableLabel && (
663663
<Label
664664
oneMarkerValue={this.state.valueOne}

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export interface MultiSliderProps {
6565

6666
optionsArray?: number[];
6767

68+
wrapperStyle?: ViewStyle;
6869
containerStyle?: ViewStyle;
6970
trackStyle?: ViewStyle;
7071
selectedStyle?: ViewStyle;
@@ -94,6 +95,7 @@ export interface MultiSliderProps {
9495
imageBackgroundSource?: string;
9596
enableLabel?: boolean;
9697
vertical?: boolean;
98+
testID?: string;
9799
}
98100

99101
export default class MultiSlider extends React.Component<MultiSliderProps> {}

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@ptomasroos/react-native-multi-slider",
3-
"version": "2.2.2",
2+
"name": "@digital-detox/react-native-multi-slider",
3+
"version": "2.2.3",
44
"description": "Android and iOS supported pure JS slider component with multiple markers for React Native",
55
"main": "MultiSlider.js",
66
"types": "index.d.ts",
@@ -9,7 +9,7 @@
99
},
1010
"repository": {
1111
"type": "git",
12-
"url": "git+https://github.com/ptomasroos/react-native-multi-slider.git"
12+
"url": "git+https://github.com/digital-detox/react-native-multi-slider.git"
1313
},
1414
"keywords": [
1515
"react-native-multi-slider",
@@ -35,7 +35,7 @@
3535
"git add"
3636
]
3737
},
38-
"author": "Tomas Roos <[email protected]>",
38+
"author": "Digital Detox (Forked from Tomas Roos <[email protected]>)",
3939
"license": "MIT",
4040
"peerDependencies": {
4141
"react": "*",
@@ -46,9 +46,6 @@
4646
"lint-staged": "^7.3.0",
4747
"prettier": "^1.14.3"
4848
},
49-
"bugs": {
50-
"url": "https://github.com/ptomasroos/react-native-multi-slider/issues"
51-
},
52-
"homepage": "https://github.com/ptomasroos/react-native-multi-slider#readme",
49+
"homepage": "https://github.com/digital-detox/react-native-multi-slider",
5350
"dependencies": {}
5451
}

0 commit comments

Comments
 (0)