rn-searchable-selectbox

1.0.5 • Public • Published

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}

Package Sidebar

Install

npm i rn-searchable-selectbox

Weekly Downloads

2

Version

1.0.5

License

none

Unpacked Size

11.9 kB

Total Files

3

Last publish

Collaborators

  • hossein-mhg