Created
June 1, 2022 12:27
-
-
Save cdcharlebois/bb83bc7bc5c3595412ba1adf75a18e9f to your computer and use it in GitHub Desktop.
This limits the scaling of your fonts to 1.25x normal size. This can be adjusted as necessary, or set to 1 to disable font scaling on your app completely.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Text} from 'react-native'; | |
Text.defaultProps = Text.defaultProps || {}; | |
Text.defaultProps.maxFontSizeMultiplier = 1.25; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome Conner, worked like a champ! Daniel