Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-combobox

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-combobox

Customizable combo box for react native apps. Compatible with Expo.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-27.27%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-combobox

Supports Android and iOS    MIT License

Customizable combo-box for react native apps

Please let me know if you encounter any issues or if you have any imporvements suggestion, comments, etc..



Getting started

npm i react-native-combobox



Usage

Example
Example - code
import ComboBox from 'react-native-combobox';
    const [selectedValue, setSelectedValue] = useState('');
    
    const values = [
        'option 1',
        'option 2',
        'option 3',
        'option 4',
        'option 5'
    ];

    return (
        <View style={{ flex: 1, paddingVertical: 80, paddingHorizontal: 40, justifyContent: 'space-between' }}>
            <ComboBox
                values={values}
                onValueSelect={setSelectedValue}
            />
            <Text>selected value:          {values[selectedValue]}</Text>
        </View>
    );

API - Combobox (default import)

PropertyTypeRequiredDefaultDescription
valuesArray<string>yes-array of strings
onValueSelectfunctionyes-returns the selected index
fontFamilystring (font)no--
textColorstring (color)no--
backgroundColorstring (color)no--
fontSizenumberno--
defaultValuestringno' '-
rtlbooleannofalse-



License

This project is licensed under the MIT License

Keywords

FAQs

Package last updated on 31 Jul 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc