react-native-slider-picker
Advanced tools
Comparing version 1.0.44 to 1.0.45
{ | ||
"name": "react-native-slider-picker", | ||
"version": "1.0.44", | ||
"description": "Custom range slide picker for React Native. 🚧 UNDER CONSTRUCTION 🚧", | ||
"version": "1.0.45", | ||
"description": "Custom range slide picker for React Native.", | ||
"main": "src/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -109,5 +109,7 @@ /** | ||
this.labelFontColor = this.props.labelFontColor ? this.props.labelFontColor : 'dimgrey'; | ||
this.labelFontWeight = this.props.labelFontWeight ? this.props.labelFontWeight : ''; | ||
this.labelFontSize = this.props.labelFontSize ? this.props.labelFontSize : 28; | ||
this.labelFontWeight = this.props.labelFontWeight ? this.props.labelFontWeight : '500'; | ||
this.scaleNumberFontColor = this.props.scaleNumberFontColor ? this.props.scaleNumberFontColor : 'dimgrey'; | ||
this.scaleNumberFontWeight = this.props.scaleNumberFontWeight ? this.props.scaleNumberFontWeight : ''; | ||
this.scaleNumberFontSize = this.props.scaleNumberFontSize ? this.props.scaleNumberFontSize : 24; | ||
this.scaleNumberFontWeight = this.props.scaleNumberFontWeight ? this.props.scaleNumberFontWeight : '500'; | ||
this.sliderInnerBackgroundColor = this.props.sliderInnerBackgroundColor ? this.props.sliderInnerBackgroundColor : 'white'; | ||
@@ -268,7 +270,8 @@ this.sliderInnerBorderStyles = this.props.sliderInnerBorderStyles ? this.props.sliderInnerBorderStyles : this.defaultSliderInnerBorderStyles; | ||
// Set width according to props.widthPercentage | ||
this.labelsContainerStyles['width'] = vw(this.widthPercentage); | ||
// Set width according to props.widthPercentage + 1 | ||
this.labelsContainerStyles['width'] = vw((this.widthPercentage) + 1); | ||
// Set label styles | ||
this.labelStyles['color'] = this.labelFontColor; | ||
this.labelStyles['fontSize'] = this.labelFontSize; | ||
this.labelStyles['fontWeight'] = this.labelFontWeight; | ||
@@ -455,2 +458,3 @@ } | ||
this.styleChecker(numberStyle, 'color', this.scaleNumberFontColor); | ||
this.styleChecker(numberStyle, 'fontSize', this.scaleNumberFontSize); | ||
this.styleChecker(numberStyle, 'fontWeight', this.scaleNumberFontWeight); | ||
@@ -457,0 +461,0 @@ |
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
52389
786