Skip to content

hossein-ghanbari/rn-searchable-selectbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rn-searchable-selectbox

searchable selectbox component for react native


example in github (https://github.com/hossein-ghanbari/rn-searchable-selectbox)

alt text

<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}

About

searchable selectbox component for react native

Resources

Stars

Watchers

Forks