diff --git a/lib/index.js b/lib/index.js index 665fba2..6d2e629 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,6 +27,7 @@ function SelectBox({ multiListEmptyLabelStyle, listEmptyLabelStyle, selectedItemStyle, + removeItemsSelected, listEmptyText = 'No results found', ...props }) { @@ -112,14 +113,18 @@ function SelectBox({ const kMultiOptionsLabelStyle = { fontSize: 10, color: '#fff', + padding: 4, + marginRight: 5, ...multiOptionsLabelStyle, } + return ( {label.item} - - - + { removeItemsSelected ? + + + : null } ) @@ -140,6 +145,7 @@ function SelectBox({ arrowIconColor = Colors.primary, searchIconColor = Colors.primary, toggleIconColor = Colors.primary, + bottomBarColor ='#ddd', searchInputProps, multiSelectInputFieldProps, listOptionProps = {}, @@ -188,7 +194,7 @@ function SelectBox({ const kContainerStyle = { flexDirection: 'row', width: '100%', - borderColor: '#ddd', + borderColor: bottomBarColor, borderBottomWidth: 1, paddingTop: 6, paddingRight: 20,