Skip to content

Instantly share code, notes, and snippets.

@cdcharlebois
Created June 1, 2022 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdcharlebois/bb83bc7bc5c3595412ba1adf75a18e9f to your computer and use it in GitHub Desktop.
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.
import {Text} from 'react-native';
Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.maxFontSizeMultiplier = 1.25;
@HHHITDept
Copy link

HHHITDept commented Jun 1, 2022

Awesome Conner, worked like a champ! Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment