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} #5

Closed
lc3t35 opened this issue Jun 22, 2020 · 0 comments · Fixed by #10
Closed

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

lc3t35 opened this issue Jun 22, 2020 · 0 comments · Fixed by #10

Comments

@lc3t35
Copy link

lc3t35 commented Jun 22, 2020

from sohobloo/react-native-modal-dropdown#243

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 referenced this issue in donni106/react-native-modal-dropdown Sep 18, 2020
- added `dropdownTextProps`, which can be used to add
  props to the text component that will be rendered, if the options
  for the dropdown were used without `renderRow`

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