Socket
Socket
Sign inDemoInstall

react-native-progress-steps

Package Overview
Dependencies
6
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.2 to 1.3.3

package-lock.json

2

package.json
{
"name": "react-native-progress-steps",
"version": "1.3.2",
"version": "1.3.3",
"description": "A simple and fully customizable React Native component that implements a progress stepper UI.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -172,2 +172,4 @@ ![](https://img.shields.io/npm/v/react-native-progress-steps.svg?style=flat)

| scrollViewProps | Object to provide props to ScrollView component | {} | Object |
| scrollable | The content of the Progress Step should be scrollable | true | Boolean |
| viewProps | Object to provide props to view component if scrollable is false | {} | Object |
| errors | Used to assist with current step validation. If true, the next step won't be rendered | false | Boolean |

@@ -174,0 +176,0 @@ | removeBtnRow | Used to render the progress step without the button row | false | Boolean |

@@ -91,2 +91,4 @@ import React, { Component } from 'react';

const scrollViewProps = this.props.scrollViewProps || {};
const viewProps = this.props.viewProps || {};
const isScrollable = this.props.scrollable;
const buttonRow = this.props.removeBtnRow ? null : (

@@ -101,3 +103,5 @@ <ProgressButtons

<View style={{ flex: 1 }}>
<ScrollView {...scrollViewProps}>{this.props.children}</ScrollView>
{isScrollable
? <ScrollView {...scrollViewProps}>{this.props.children}</ScrollView>
: <View {...viewProps}>{this.props.children}</View>}

@@ -127,4 +131,6 @@ {buttonRow}

scrollViewProps: PropTypes.object,
viewProps: PropTypes.object,
errors: PropTypes.bool,
removeBtnRow: PropTypes.bool
removeBtnRow: PropTypes.bool,
scrollable: PropTypes.bool
};

@@ -139,5 +145,6 @@

errors: false,
removeBtnRow: false
removeBtnRow: false,
scrollable: true
};
export default ProgressStep;
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc