Skip to content

nicolastorre/rn-numberpicker-android

Repository files navigation

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