Skip to content

anvinjain/rn-spinner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rn-spinner

NPM version npm download

Number Spinner component for react-native.

Install

npm install rn-spinner --save

Usage

// Require
var Spinner = require('rn-spinner');

// Use
<Spinner max={10}
         min={2}
         default={5}
         color="#f60"
         numColor="#f60"
         onNumChange={(num)=>{console.log(num)}}

Props

  • 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

Screenshot

Feedback

Issues

License

The MIT License

About

An extensible number Spinner component for react-native.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%