react-native-progress-steps
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"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; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2780926
12
1517
187