Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1009 Bytes

README.md

File metadata and controls

49 lines (32 loc) · 1009 Bytes

rn-numberpicker-android

Display a number picker for Android

Test e2e npm version

Requirements

  • react-native >= 0.57.

Install

$ npm install rn-numberpicker-android --save

Usage

import {NumberPicker} from 'rn-numberpicker-android';

...

<NumberPicker
    items={['0', '1', '2', '3']}
    selectedItem={'1'}
    onChange={nb => console.log(nb)}
    style={{
        left: 0,
        width: 100,
        height: 200,
    }}
/>

Example

See inside example folder for a demo app showcasing the android number picker.

License

MIT