File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ function SelectBox({
28
28
listEmptyLabelStyle,
29
29
selectedItemStyle,
30
30
removeItemsSelected,
31
+ editStatus,
31
32
listEmptyText = 'No results found' ,
32
33
...props
33
34
} ) {
@@ -134,6 +135,7 @@ function SelectBox({
134
135
}
135
136
const {
136
137
selectIcon,
138
+ noEditable,
137
139
label,
138
140
inputPlaceholder = 'Select' ,
139
141
hideInputFilter,
@@ -227,9 +229,11 @@ function SelectBox({
227
229
</ TouchableOpacity >
228
230
) }
229
231
</ 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
+ }
233
237
</ View >
234
238
{ /* Options wrapper */ }
235
239
{ showOptions && (
@@ -309,6 +313,7 @@ function SelectBox({
309
313
}
310
314
311
315
function onPressShowOptions ( ) {
316
+ editStatus ? editStatus ( showOptions ) : null
312
317
return ( ) => setShowOptions ( ! showOptions )
313
318
}
314
319
}
You can’t perform that action at this time.
0 commit comments