npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-multiple-select-hac

v0.1.4

Published

react native multiple select

Downloads

28

Readme

react-native-multiple-select-hac

Content type (Vertical and horizontal) | Modal Light | Modal Dark :-------------------------:|:-------------------------:|:-------------------------: content !|modal Light| modal dark

react-native-multiple-select-hac

react native multiple select

Installation

npm install react-native-multiple-select-hac

Usage

import MultipleSelect from "react-native-multiple-select-hac";

// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

The component takes 3 compulsory props - items, uniqueKey, value and setValue . Other props are optional. The table below explains more.

Props

| Prop | Required | Purpose | | ------------- |-------------| -----| | uniqueKey | No | (String) Defaults to "value". Unique identifier that is part of each item's properties. Used internally as means of identifying each item| | items | No | State variable that holds the items. | | value | No | (array) State variable that specifies the value of the selected item. It's an array of values for multiple item pickers. | | setValue | No | ((callback: SetStateAction) => void) State callback that is called when the value changes. | | displayedObject | No | (String) Defaults to "label". This string will be used to select the key to display the objects in the items array | | topText | No | (String) Top Text for multiple select | | topTextStyle | No | (StyleProp) Style for top text | | theme | No | (light / dark) Theme for component | | searchable | No | (boolean) Defaults to "false". Enables the search feature in the drop-down menu / modal. | | placeholder | No | (String) Defaults to 'Select items'. Placeholder text displayed in multi-select filter input | | onSelectedItemsChange | No | (void function) Callback that returns the selected item / items. | | placeholderStyle | No | (StyleProp) Styling for placeholder | | max | No | (number) Specifies the maximum number of items. | | categorySelectable | No | (boolean) Defaults to 'false'. Allows selection of categories | | parent | No | (string) The children have the parent's value as their parent key. | | clearText | No | (string) Defaults to 'Clear'. Text for remove all selected button. | | clearStyle | No | (StyleProp) Styling for clearText | | confirmButtonText | No | (string) Defaults to 'Confirm'. Confirm button text. | | confirmButtonTextStyle | No | (StyleProp) Styling for confirm button's text | | confirmButtonStyle | No | (StyleProp) Styling for confirm button | | vertical | No | (boolean) Defaults to 'false'. Display mode of selected items| | verticalMaxHeight | No | (number) Defaults to '200'. Height of vertical mode| | contentStyle | No | (StyleProp) Styling for content | | modalContentStyle | No | (StyleProp) Styling for modal content | | modalContainer | No | (StyleProp) Styling for modal container | | containerStyle | No | (StyleProp) Styling for container | | badgeIcon | No | (ReactNode) Icon for badge | | badgeTextStyle | No | (StyleProp) Styling for badge's text | | crossStyle | No | (string) Color for badge's cross icon | | headerIcon | No | (ReactNode) Icon for modal close button | | leftStyle | No | (StyleProp) Icon styling for modal close button | | headerStyle | No | (StyleProp) Styling for modal header |