react-native-simple-modal-select

0.1.0 • Public • Published

React Native Simple Modal Select

A simple and searchable modal selector for React Native.

Demo

How to install

npm i react-native-simple-modal-select

Props

  • data - [] required, array of objects that will be passed to the picker, with unique key and label.
  • labelName - string required, name of your object property that will be used for displaying text.
  • valueName - string required, name of your object property that will be used as option value.
  • visible - boolean required, prop used to show/hide the component.
  • transparent - boolean optional, backdrop transparency, true by default.
  • searchable - boolean optional, used for showing/hiding the search input, false by default.
  • onItemPress - function required, callback function fired when the user selects an item.
  • cancelText - string optional, text of 'cancel' button.
  • cancelCallback - function required, callback for the onPress event of the cancel button and the onRequestClose event of the modal.
  • searchPlaceHolder - string optional, placeholder text of the search input.
  • noResultsText - string optional, text showed when there are no search results.

License

This package is licensed under The MIT License (MIT).

/react-native-simple-modal-select/

    Package Sidebar

    Install

    npm i react-native-simple-modal-select

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    264 kB

    Total Files

    6

    Last publish

    Collaborators

    • francoibarra