1.0.4 • Published 3 years ago
rncustomdropdown v1.0.4
This package provide you to use drop down in very easy way and easy to understand
Installing
npm i rncustomdropdown
How to use:-
1-First import by using npm i rncustomdropdown
2-import CustomDropdown from 'rncustomdropdown';
Usage
<CustomDropdown
data={[{name:'junaid'},{name:'qureshi'},
{name:'qurewertyushi'}]}
dropdownTitle={"MyDefaulData"}
handleCallback={(result) => console.log
("callback data===>", result)}
dropDownWidth={200}
/>
Available props
Name | Type | Default | Description |
---|---|---|---|
data | array | { name: "A" },{ name: "B" },{ name:"C"} | take the dropdown data |
dropdownTitle | string | Select | dropdown title |
dropDownWidth | number | null | dropDownWidth |
handleDropdown | function | null | it return the selected item. |