react-native-simple-stepper
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "react-native-simple-stepper", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A super simple react-native implementation of the classic UIStepper from iOS.", | ||
@@ -5,0 +5,0 @@ "main": "SimpleStepper.js", |
@@ -1,5 +0,7 @@ | ||
### react-native-simple-stepper | ||
## react-native-simple-stepper | ||
[![npm version](http://img.shields.io/npm/v/react-native-simple-stepper.svg?style=flat-square)](https://www.npmjs.com/package/react-native-simple-stepper "View this project on npm") | ||
[![npm version](http://img.shields.io/npm/dm/react-native-simple-stepper.svg?style=flat-square)](https://www.npmjs.com/package/react-native-simple-stepper "View this project on npm") | ||
[![Platform](https://img.shields.io/badge/platform-react--native-lightgrey.svg)](http://facebook.github.io/react-native/) | ||
[![npm version](http://img.shields.io/npm/v/react-native-simple-stepper.svg)](https://www.npmjs.com/package/react-native-simple-stepper) | ||
[![npm version](http://img.shields.io/npm/dm/react-native-simple-stepper.svg)](https://www.npmjs.com/package/react-native-simple-stepper) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.github.com/devBrian/react-native-simple-stepper/master/LICENSE) | ||
@@ -10,2 +12,8 @@ ![screenshot](https://raw.github.com/devBrian/react-native-simple-stepper/master/screenshots/stepper.png) | ||
### Installation | ||
--- | ||
```bash | ||
npm i react-native-simple-stepper --save | ||
``` | ||
### Demo | ||
@@ -17,3 +25,2 @@ --- | ||
--- | ||
| Name | Type | Description | Default | ||
@@ -28,6 +35,2 @@ | ------------ | ------------- | ------------ |------------ |------------ | | ||
| ```underlayColor``` | String | tap color | lightgray | ||
### License | ||
--- | ||
[MIT](https://raw.github.com/devBrian/react-native-simple-stepper/master/LICENSE) | ||
| ```valueChanged``` | Function | Fires when value changes and it will be passed down | null |
@@ -13,3 +13,4 @@ | ||
tintColor: React.PropTypes.string, | ||
underlayColor: React.PropTypes.string | ||
underlayColor: React.PropTypes.string, | ||
valueChanged: React.PropTypes.func | ||
} | ||
@@ -23,3 +24,4 @@ static defaultProps = { | ||
tintColor: 'blue', | ||
underlayColor: 'lightgray' | ||
underlayColor: 'lightgray', | ||
valueChanged: null | ||
} | ||
@@ -26,0 +28,0 @@ constructor(props) { |
7964
121
34