diff --git a/lib/index.js b/lib/index.js index 665fba2..6c93633 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,6 +27,7 @@ function SelectBox({ multiListEmptyLabelStyle, listEmptyLabelStyle, selectedItemStyle, + editStatus, listEmptyText = 'No results found', ...props }) { @@ -129,6 +130,7 @@ function SelectBox({ } const { selectIcon, + noEditable, label, inputPlaceholder = 'Select', hideInputFilter, @@ -221,9 +223,11 @@ function SelectBox({ )} - - {selectIcon ? selectIcon : } - + {noEditable ? null : + + {selectIcon ? selectIcon : } + + } {/* Options wrapper */} {showOptions && ( @@ -303,6 +307,7 @@ function SelectBox({ } function onPressShowOptions() { + editStatus ? editStatus(showOptions) : null return () => setShowOptions(!showOptions) } }