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 @@ -27,6 +27,7 @@ function SelectBox({
2727 multiListEmptyLabelStyle,
2828 listEmptyLabelStyle,
2929 selectedItemStyle,
30+ editStatus,
3031 listEmptyText = 'No results found' ,
3132 ...props
3233} ) {
@@ -129,6 +130,7 @@ function SelectBox({
129130 }
130131 const {
131132 selectIcon,
133+ noEditable,
132134 label,
133135 inputPlaceholder = 'Select' ,
134136 hideInputFilter,
@@ -221,9 +223,11 @@ function SelectBox({
221223 </ TouchableOpacity >
222224 ) }
223225 </ View >
224- < TouchableOpacity onPress = { onPressShowOptions ( ) } hitSlop = { hitSlop } >
225- { selectIcon ? selectIcon : < Icon name = { showOptions ? 'upArrow' : 'downArrow' } fill = { arrowIconColor } /> }
226- </ TouchableOpacity >
226+ { noEditable ? null :
227+ < TouchableOpacity onPress = { onPressShowOptions ( ) } hitSlop = { hitSlop } >
228+ { selectIcon ? selectIcon : < Icon name = { showOptions ? 'upArrow' : 'downArrow' } fill = { arrowIconColor } /> }
229+ </ TouchableOpacity >
230+ }
227231 </ View >
228232 { /* Options wrapper */ }
229233 { showOptions && (
@@ -303,6 +307,7 @@ function SelectBox({
303307 }
304308
305309 function onPressShowOptions ( ) {
310+ editStatus ? editStatus ( showOptions ) : null
306311 return ( ) => setShowOptions ( ! showOptions )
307312 }
308313}
You can’t perform that action at this time.
0 commit comments