Socket
Socket
Sign inDemoInstall

@tele2/react-native-select-input

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tele2/react-native-select-input

Easy-peasy select input picker for React Native


Version published
Weekly downloads
56
decreased by-15.15%
Maintainers
1
Install size
151 kB
Created
Weekly downloads
 

Readme

Source

react-native-select-input

Easy-peasy select input picker for React Native.

Demo

iOSAndroid
iOSAndroid

You can try the demo app here.

Installation

npm install @tele2/react-native-select-input --save

Usage

import React, { Component } from 'react';
import SelectInput from '@tele2/react-native-select-input';

class MyComponent extends Component {
  render() {
    <SelectInput
      options={[{
        value: 'my-option-value',
        label: 'My option label',
      }]}
    />
  }
}

export default MyComponent;

You can see more examples in the example app.

API

PropertyTypeRequiredDefault valueDescription
labelstringnonullLabel to be shown on the top of the input.
placeholderstringnostringPlaceholder to be shown if the input has no value.
donestringnostringString that shows on the header of the select input in iOS.
valuestring/numbernonullCurrent input value.
optionsarrayOfyesCheck hereOptions available to be selected.
disabledboolnofalseWhether the input is disabled or not.
loadingboolnofalseWhether the input is on loading state or not.
colorsshapenoCheck hereColors to easily personalize the input.
onChangefunctionnonullFunction to be called whenever the input value is changed.
renderLabelfunctionnonullFunction to render a custom label.
labelPropsobjectnonullProps to be passed to the label <Text /> component.
valuePropsobjectnonullProps to be passed to the value <Text /> component.
renderArrowIconfunctionnonullFunction to render a custom arrow icon.
labelStylecustomnonullCustom label style.
loadingContainerStylecustomnonullCustom style for the loading container.
valueContainerStylecustomnonullCustom style for the value container.
valueStylecustomnonullCustom value style.
containerStylecustomnonullCustom style for the container of the input.
innerContainerStylecustomnonullCustom style for the inner container of the input.
arrowIconnonull
testPropertystringnoProperty for setting a testID (iOS) / accessibilityLabel (Android) for testing

License

MIT © Tele2 Netherlands.

Keywords

FAQs

Last updated on 02 Jul 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc