@@ -40,6 +40,8 @@ export default class MultiSelect extends Component {
40
40
uniqueKey : PropTypes . string ,
41
41
tagBorderColor : PropTypes . string ,
42
42
tagTextColor : PropTypes . string ,
43
+ tagContainerStyle : ViewPropTypes . style ,
44
+ tagFontSize : PropTypes . number ,
43
45
fontFamily : PropTypes . string ,
44
46
tagRemoveIconColor : PropTypes . string ,
45
47
onSelectedItemsChange : PropTypes . func . isRequired ,
@@ -170,17 +172,19 @@ export default class MultiSelect extends Component {
170
172
return find ( items , singleItem => singleItem [ uniqueKey ] === itemKey ) || { } ;
171
173
} ;
172
174
173
- _displaySelectedItems = optionalSelctedItems => {
175
+ _displaySelectedItems = optionalSelectedItems => {
174
176
const {
175
177
fontFamily,
178
+ tagContainerStyle,
176
179
tagRemoveIconColor,
177
180
tagBorderColor,
181
+ tagFontSize,
178
182
uniqueKey,
179
183
tagTextColor,
180
184
selectedItems,
181
185
displayKey
182
186
} = this . props ;
183
- const actualSelectedItems = optionalSelctedItems || selectedItems ;
187
+ const actualSelectedItems = optionalSelectedItems || selectedItems ;
184
188
return actualSelectedItems . map ( singleSelectedItem => {
185
189
const item = this . _findItem ( singleSelectedItem ) ;
186
190
if ( ! item [ displayKey ] ) return null ;
@@ -193,7 +197,8 @@ export default class MultiSelect extends Component {
193
197
justifyContent : 'center' ,
194
198
height : 40 ,
195
199
borderColor : tagBorderColor
196
- }
200
+ } ,
201
+ tagContainerStyle || { }
197
202
] }
198
203
key = { item [ uniqueKey ] }
199
204
>
@@ -202,7 +207,7 @@ export default class MultiSelect extends Component {
202
207
{
203
208
flex : 1 ,
204
209
color : tagTextColor ,
205
- fontSize : 15
210
+ fontSize : tagFontSize || 15
206
211
} ,
207
212
fontFamily ? { fontFamily } : { }
208
213
] }
0 commit comments