1.0.11 • Published 4 years ago
@brasileiromaia/react-native-multiselect-dropdown v1.0.11
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"
/>