A simple wrapper of Mobiscroll for ReactJS.
Live demo: xicombd.github.io/react-mobiscroll
To build the examples locally, run:
npm install
gulp dev
Then open localhost:8000
in a browser.
This project is still in development and bugs will arise very likely.
The project structure is based on react-select which uses react-component-gulp-tasks.
The easiest way to use React-Select is to install it from NPM and include it in your own React build process (using Browserify, etc).
npm install react-mobiscroll --save
var Mobiscroll = require('react-mobiscroll');
var ops = {
display: 'inline',
showInput: false,
data: [
{ text: 'Paris', value: '1', group: 'Europe' },
{ text: 'New York', value: '2', group: 'America' }
]
}
<Mobiscroll preset="select" options={ops} elType="input"/>
MIT