react-native-slider-picker
Advanced tools
Comparing version 1.0.45 to 1.0.46
{ | ||
"name": "react-native-slider-picker", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"description": "Custom range slide picker for React Native.", | ||
@@ -20,3 +20,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"react-native-css-vh-vw": "^1.0.2" | ||
"react-native-css-vh-vw": "^1.0.4" | ||
}, | ||
@@ -23,0 +23,0 @@ "keywords": [ |
@@ -48,5 +48,7 @@ ## React Native Slider Picker | ||
| `labelFontColor` | String | Sets font color of labels if they are displayed. | `"dimgrey"` | Can pass valid React Native color keywords, hexidecimal, rgb(), or rgba() values. | | ||
| `labelFontWeight` | String | Sets font weight of labels if they are displayed. | `""` -> the default `fontWeight` value in React Native. | | | ||
| `labelFontSize` | Number | Sets font size of labels if they are displayed. | `28` | | | ||
| `labelFontWeight` | String | Sets font weight of labels if they are displayed. | `"normal"` | | | ||
| `scaleNumberFontColor` | String | Sets font color of scale numbers if they are displayed. | `"dimgrey"` | Can pass valid React Native color keywords, hexidecimal, rgb(), or rgba() values. | | ||
| `scaleNumberFontWeight` | String | Sets font weight of scale numbers if they are displayed. | `""` -> the default `fontWeight` value in React Native. | | | ||
| `scaleNumberFontSize` | Number | Sets font size of scale numbers if they are displayed. | `24` | | | ||
| `scaleNumberFontWeight` | String | Sets font weight of scale numbers if they are displayed. | `"normal"` | | | ||
| `sliderInnerBackgroundColor` | String | Sets background color of inner slider View. | `"white"` | Can pass valid React Native color keywords, hexidecimal, rgb(), or rgba() values. | | ||
@@ -53,0 +55,0 @@ | `sliderInnerBorderStyles` | Object | An object of StyleSheet properties to set border-related styles of sliderInner View component. | `{ borderWidth: vw(1) / 2, borderColor: '#d9dce4', borderBottomColor: '#f1f4f5', borderRadius: 50 }` | If passed, the object is filtered to remove any key/value properties that are not for component's border. | |
@@ -15,3 +15,4 @@ /** | ||
* @param {String} labelFontColor - Optional. Sets font color of labels if they are displayed. Can pass valid React Native color keywords, hexidecimal, rgb(), or rgba() values. Defaults to `"dimgrey"`. | ||
* @param {String} labelFontWeight - Optional. Sets font weight of labels if they are displayed. Defaults to empty string - the default fontWeight value in React Native. | ||
* @param {Number} labelFontSize - Optional. Sets font size of labels if they are displayed. Defaults to `28`. | ||
* @param {String} labelFontWeight - Optional. Sets font weight of labels if they are displayed. Defaults to `"normal"`. | ||
* @param {String} maxLabel - Optional. Label for the maximum value. Defaults to an empty `<View>` component. | ||
@@ -22,3 +23,4 @@ * @param {Number} maxValue - Optional. The maximum value/high end of range for the Slider. Defaults to `10`. | ||
* @param {String} scaleNumberFontColor - Optional. Sets font color of scale numbers if they are displayed. Can pass valid React Native color keywords, hexidecimal, rgb(), or rgba() values. Defaults to "dimgrey". | ||
* @param {String} scaleNumberFontWeight - Optional. Sets font weight of scale numbers if they are displayed. Defaults to empty string - the default fontWeight value in React Native. | ||
* @param {Number} scaleNumberFontSize - Optional. Sets font size of scale numbers if they are displayed. Defaults to `24`. | ||
* @param {String} scaleNumberFontWeight - Optional. Sets font weight of scale numbers if they are displayed. Defaults to `"normal"`. | ||
* @param {Boolean} showFill - Optional. Boolean value to determine whether or not the slider inner shows a fill or if it is transparent. Defaults to `true`. | ||
@@ -112,6 +114,6 @@ * @param {Boolean} showNumberScale - Optional. Boolean value to determine whether or not to display scale of numbers for the Slider's range. Defaults to `false`. | ||
this.labelFontSize = this.props.labelFontSize ? this.props.labelFontSize : 28; | ||
this.labelFontWeight = this.props.labelFontWeight ? this.props.labelFontWeight : '500'; | ||
this.labelFontWeight = this.props.labelFontWeight ? this.props.labelFontWeight : 'normal'; | ||
this.scaleNumberFontColor = this.props.scaleNumberFontColor ? this.props.scaleNumberFontColor : 'dimgrey'; | ||
this.scaleNumberFontSize = this.props.scaleNumberFontSize ? this.props.scaleNumberFontSize : 24; | ||
this.scaleNumberFontWeight = this.props.scaleNumberFontWeight ? this.props.scaleNumberFontWeight : '500'; | ||
this.scaleNumberFontWeight = this.props.scaleNumberFontWeight ? this.props.scaleNumberFontWeight : 'normal'; | ||
this.sliderInnerBackgroundColor = this.props.sliderInnerBackgroundColor ? this.props.sliderInnerBackgroundColor : 'white'; | ||
@@ -118,0 +120,0 @@ this.sliderInnerBorderStyles = this.props.sliderInnerBorderStyles ? this.props.sliderInnerBorderStyles : this.defaultSliderInnerBorderStyles; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53232
788
178