Number Spinner component for react-native.
npm install rn-spinner --save
// Require
var Spinner = require('rn-spinner');
// Use
<Spinner max={10}
min={2}
default={5}
color="#f60"
numColor="#f60"
onNumChange={(num)=>{console.log(num)}}
- max
- min
- default: default number of the Spinner
- color: custom color of the Spinner
- numColor: custom number color
- numBgColor: background color of number button
- onNumChange: get the number of the Spinner
- showBorder: show the border of the Spinner
- disabled: disable the Spinner
- fontSize: custom fontSize of the text input in the Spinner
- btnFontSize: custom fontSize of buttons in the Spinner
- buttonTextColor: custom color of the button in the Spinner
- width: custom width of the spinner
- height: custom height of the spinner
The MIT License