diff --git a/lib/react-native-multi-select.js b/lib/react-native-multi-select.js index de80a20..6b965fe 100644 --- a/lib/react-native-multi-select.js +++ b/lib/react-native-multi-select.js @@ -54,6 +54,8 @@ export default class MultiSelect extends Component { searchInputPlaceholderText: PropTypes.string, searchInputStyle: PropTypes.object, selectText: PropTypes.string, + LabelNotFounItem:PropTypes.string, + selectIndicatorText:PropTypes.string, styleDropdownMenu: ViewPropTypes.style, styleDropdownMenuSubsection: ViewPropTypes.style, styleInputGroup: ViewPropTypes.style, @@ -164,7 +166,7 @@ export default class MultiSelect extends Component { const foundItem = this._findItem(item); return get(foundItem, displayKey) || selectText; } - return `${selectText} (${selectedItems.length} selected)`; + return `${selectText} (${selectedItems.length} ${selectIndicatorText})`; }; _findItem = itemKey => { @@ -526,7 +528,7 @@ export default class MultiSelect extends Component { fontFamily ? { fontFamily } : {} ]} > - No item to display. + {LabelNotFounItem} );