@@ -27,6 +27,7 @@ function SelectBox({
2727 multiListEmptyLabelStyle,
2828 listEmptyLabelStyle,
2929 selectedItemStyle,
30+ removeItemsSelected,
3031 listEmptyText = 'No results found' ,
3132 ...props
3233} ) {
@@ -112,14 +113,18 @@ function SelectBox({
112113 const kMultiOptionsLabelStyle = {
113114 fontSize : 10 ,
114115 color : '#fff' ,
116+ padding : 4 ,
117+ marginRight : 5 ,
115118 ...multiOptionsLabelStyle ,
116119 }
120+
117121 return (
118122 < View style = { kMultiOptionContainerStyle } >
119123 < Text style = { kMultiOptionsLabelStyle } > { label . item } </ Text >
120- < TouchableOpacity style = { { marginLeft : 15 } } hitSlop = { hitSlop } onPress = { onPressItem ( ) } >
121- < Icon name = "closeCircle" fill = "#fff" width = { 21 } height = { 21 } />
122- </ TouchableOpacity >
124+ { removeItemsSelected ?
125+ < TouchableOpacity hitSlop = { hitSlop } onPress = { onPressItem ( ) } >
126+ < Icon name = "closeCircle" fill = "#fff" width = { 21 } height = { 21 } />
127+ </ TouchableOpacity > : null }
123128 </ View >
124129 )
125130
@@ -140,6 +145,7 @@ function SelectBox({
140145 arrowIconColor = Colors . primary ,
141146 searchIconColor = Colors . primary ,
142147 toggleIconColor = Colors . primary ,
148+ bottomBarColor = '#ddd' ,
143149 searchInputProps,
144150 multiSelectInputFieldProps,
145151 listOptionProps = { } ,
@@ -188,7 +194,7 @@ function SelectBox({
188194 const kContainerStyle = {
189195 flexDirection : 'row' ,
190196 width : '100%' ,
191- borderColor : '#ddd' ,
197+ borderColor : bottomBarColor ,
192198 borderBottomWidth : 1 ,
193199 paddingTop : 6 ,
194200 paddingRight : 20 ,
0 commit comments