🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-native-select-input-ios

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-select-input-ios

A React Native SelectInput for iOS and Android, which uses a keyboard with a Picker component

2.0.5
latest
Source
npm
Version published
Weekly downloads
212
15.85%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

ReactNative

FAQs

Package last updated on 24 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts