sohobloo / react-native-modal-dropdown

A react-native dropdown/picker/selector component for both Android & iOS.
MIT License
1.19k stars 478 forks source link

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

Open lc3t35 opened 4 years ago

lc3t35 commented 4 years ago

On Android, fonts are automatically adjusted, to prevent this you can add allowFontScaling={false} props for . 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>) :
donni106 commented 4 years ago

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?