diff --git a/README.md b/README.md index b0cccce..f4e10db 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,8 @@ class App extends Component { | selectedLabelStyle | [default styles](src/SelectMultiple.styles.js) | `object` | [Style](https://facebook.github.io/react-native/docs/text.html#style) for the text label when selected. | | renderLabel | null | `func` | Function for render label. | | maxSelect | null | `int` | Maximum number of selected items| +| maxFontSizeMultiplier | 0 | `number` | [maxFontSizeMultiplier](https://reactnative.dev/docs/text#maxfontsizemultiplier) for the `Text`. | +| allowFontScaling | true | `bool` | [allowFontScaling](https://reactnative.dev/docs/text#allowfontscaling) for the `Text`. | ## Contribute diff --git a/src/SelectMultiple.js b/src/SelectMultiple.js index f1e4fee..36bfb12 100644 --- a/src/SelectMultiple.js +++ b/src/SelectMultiple.js @@ -39,7 +39,10 @@ export default class SelectMultiple extends Component { selectedRowStyle: styleType, selectedCheckboxStyle: styleType, - selectedLabelStyle: styleType + selectedLabelStyle: styleType, + + maxFontSizeMultiplier: PropTypes.number, + allowFontScaling: PropTypes.bool } static defaultProps = { @@ -52,7 +55,9 @@ export default class SelectMultiple extends Component { maxSelect: null, checkboxSource: checkbox, selectedCheckboxSource: checkboxChecked, - renderLabel: null + renderLabel: null, + maxFontSizeMultiplier: 0, + allowFontScaling: true } constructor (props) { @@ -131,7 +136,7 @@ export default class SelectMultiple extends Component { return this.props.renderLabel(label, style, selected) } return ( - {label} + {label} ) }