Skip to content

Commit b0b01e9

Browse files
committed
feat: add tag font size
1 parent eaa5af3 commit b0b01e9

File tree

2 files changed

+8492
-1
lines changed

2 files changed

+8492
-1
lines changed

lib/react-native-multi-select.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default class MultiSelect extends Component {
4040
uniqueKey: PropTypes.string,
4141
tagBorderColor: PropTypes.string,
4242
tagTextColor: PropTypes.string,
43+
tagFontSize: PropTypes.number,
4344
fontFamily: PropTypes.string,
4445
tagRemoveIconColor: PropTypes.string,
4546
onSelectedItemsChange: PropTypes.func.isRequired,
@@ -175,6 +176,7 @@ export default class MultiSelect extends Component {
175176
fontFamily,
176177
tagRemoveIconColor,
177178
tagBorderColor,
179+
tagFontSize,
178180
uniqueKey,
179181
tagTextColor,
180182
selectedItems,
@@ -202,7 +204,7 @@ export default class MultiSelect extends Component {
202204
{
203205
flex: 1,
204206
color: tagTextColor,
205-
fontSize: 15
207+
fontSize: tagFontSize || 15
206208
},
207209
fontFamily ? { fontFamily } : {}
208210
]}

0 commit comments

Comments
 (0)