@brasileiromaia/react-native-multiselect-dropdown

yarn add @brasileiromaia/react-native-multiselect-dropdown

Usage no npm install needed!

<script type="module">
  import brasileiromaiaReactNativeMultiselectDropdown from 'https://cdn.skypack.dev/@brasileiromaia/react-native-multiselect-dropdown';
</script>

README

React Native Multiselect Dropdown

install

yarn add @brasileiromaia/react-native-multiselect-dropdown

Import

import Select from '@brasileiromaia/react-native-multiselect-dropdown';

Usage

// The component receive the state and function that define a new state.
const [uf, setUf] = useState([]);

// The array needs has one id and name.

// Example:
// uf: {
//   id: 1,
//   name: 'Nome'
// }


// Every properties listed down are required.
<Select
  data={uf}
  setData={setUf}
  label="UF"
  palceholder="Selecionar seu estado"
/>