Giter VIP home page Giter VIP logo

react-native-select-input-ios's Introduction

React Native Select Input

npm version npm downloads Build Status Code Climate Issue Count

A React Native SelectInput for iOS (+Android) which shows the picker as a keyboard.

Preview

          

Installation

Installation can be done through npm or yarn:

npm install react-native-select-input-ios --save
# or
yarn add react-native-select-input-ios

Usage

Import the SelectInput and wrap you content inside of it.

import React from 'react'
import { View } from 'react-native'
import SelectInput from 'react-native-select-input-ios'

class Component extends React.Component {
  render() {
    const options = [{ value: 0, label: '0' }]
    
    return (
      <View>
        <SelectInput value={0} options={options} />
      </View>
    )
  }
}

Props

Check out the properties wiki page to see the list of available props to pass. Also check out the methods wiki page to see the list of callable methods available.

Migrating to version 2.x.x

There are some breaking changes introduced in version 2.0, see this migration guide to fix this issues!

Example:

Check out the repository and run the example project with the following commands:

# clone and open example project
git clone https://github.com/markuswind/react-native-select-input-ios
cd example

# install dependencies with
npm install 
# or
yarn install

# run the project with
react-native run-ios
# or
react-native run-android

License

MIT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.