File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export interface MultiSelectProps {
49
49
textInputProps ?: TextInputProps ;
50
50
flatListProps ?: FlatListProps < any > ;
51
51
filterMethod ?: string ;
52
+ noItemsText ?: string ;
52
53
}
53
54
54
55
export default class MultiSelect extends React . Component < MultiSelectProps > {
Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ export default class MultiSelect extends Component {
83
83
filterMethod : PropTypes . string ,
84
84
onClearSelector : PropTypes . func ,
85
85
onToggleList : PropTypes . func ,
86
- removeSelected : PropTypes . bool
86
+ removeSelected : PropTypes . bool ,
87
+ noItemsText : PropTypes . string
87
88
} ;
88
89
89
90
static defaultProps = {
@@ -119,7 +120,8 @@ export default class MultiSelect extends Component {
119
120
onAddItem : ( ) => { } ,
120
121
onClearSelector : ( ) => { } ,
121
122
onToggleList : ( ) => { } ,
122
- removeSelected : false
123
+ removeSelected : false ,
124
+ noItemsText : 'No items to display.'
123
125
} ;
124
126
125
127
constructor ( props ) {
@@ -482,7 +484,8 @@ export default class MultiSelect extends Component {
482
484
selectedItems,
483
485
flatListProps,
484
486
styleListContainer,
485
- removeSelected
487
+ removeSelected,
488
+ noItemsText
486
489
} = this . props ;
487
490
const { searchTerm } = this . state ;
488
491
let component = null ;
@@ -526,7 +529,7 @@ export default class MultiSelect extends Component {
526
529
fontFamily ? { fontFamily } : { }
527
530
] }
528
531
>
529
- No item to display.
532
+ { noItemsText }
530
533
</ Text >
531
534
</ View >
532
535
) ;
You can’t perform that action at this time.
0 commit comments