Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-slider-picker

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-slider-picker - npm Package Compare versions

Comparing version 1.0.44 to 1.0.45

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc