react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

Add optionalProps for <Text> for allowFontScaling={false}

Open lc3t35 opened this issue 4 years ago • 1 comments

On Android, fonts are automatically adjusted, to prevent this you can add allowFontScaling={false} props for <Text>. Current implementation does not include a way to inject such props in Text, adding dropdownTextProps in props would be nice.

const row = !renderRow ?
      (<Text style={[
        styles.rowText,
        dropdownTextStyle,
        highlighted && styles.highlightedRowText,
        highlighted && dropdownTextHighlightStyle
      ]}
      {...dropdownTextProps}
      >
        {rowData}
      </Text>) :

lc3t35 avatar Mar 17 '20 22:03 lc3t35

Hi @lc3t35, can you please create this issue in the up-to-date fork of this package here: https://github.com/siemiatj/react-native-modal-dropdown/issues?

donni106 avatar Jun 22 '20 08:06 donni106