searchable selectbox component for react native
example in github (https://github.com/hossein-ghanbari/rn-searchable-selectbox)
<SearchableSelectbox
data={data}
withSeacrh={true or false}
mutil={true or false}
label="Countries"
selectedValue={selected}
onValueChange={(selectedValue) => setSelected(selectedValue)}
selectboxPlaceHolder="Select"
searchPlaceholder="Search"
/>
props | desc |
---|---|
data | {type : array} |
withSeacrh | {type : bool} |
mutil | {type : bool} |
label | {type : string} |
selectedValue | {type :if multi = true => array ; else => object} |
onValueChange | {desc : 'evnet when value has change'} |
errorMsg | {type : string} |
selectboxPlaceHolder | {type : string} |
searchPlaceholder | {type : string} |
(lebelStyle
selectboxStyle
selectboxTextStyle
errorTextStyle
modalHeaderTextStyle
searchInputStyle
listItemStyle
multiBadgeStyle
multiBadgeTextStyle
multiBadgeIconStyle )
{type : style object}