File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ function SelectBox({
2828 listEmptyLabelStyle,
2929 selectedItemStyle,
3030 removeItemsSelected,
31+ editStatus,
3132 listEmptyText = 'No results found' ,
3233 ...props
3334} ) {
@@ -134,6 +135,7 @@ function SelectBox({
134135 }
135136 const {
136137 selectIcon,
138+ noEditable,
137139 label,
138140 inputPlaceholder = 'Select' ,
139141 hideInputFilter,
@@ -227,9 +229,11 @@ function SelectBox({
227229 </ TouchableOpacity >
228230 ) }
229231 </ View >
230- < TouchableOpacity onPress = { onPressShowOptions ( ) } hitSlop = { hitSlop } >
231- { selectIcon ? selectIcon : < Icon name = { showOptions ? 'upArrow' : 'downArrow' } fill = { arrowIconColor } /> }
232- </ TouchableOpacity >
232+ { noEditable ? null :
233+ < TouchableOpacity onPress = { onPressShowOptions ( ) } hitSlop = { hitSlop } >
234+ { selectIcon ? selectIcon : < Icon name = { showOptions ? 'upArrow' : 'downArrow' } fill = { arrowIconColor } /> }
235+ </ TouchableOpacity >
236+ }
233237 </ View >
234238 { /* Options wrapper */ }
235239 { showOptions && (
@@ -309,6 +313,7 @@ function SelectBox({
309313 }
310314
311315 function onPressShowOptions ( ) {
316+ editStatus ? editStatus ( showOptions ) : null
312317 return ( ) => setShowOptions ( ! showOptions )
313318 }
314319}
You can’t perform that action at this time.
0 commit comments