Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lc3t35 opened this issue Mar 17, 2020 · 1 comment
Open

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

lc3t35 opened this issue Mar 17, 2020 · 1 comment

Comments

@lc3t35
Copy link

lc3t35 commented Mar 17, 2020

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants