Skip to content

Instantly share code, notes, and snippets.

@trinadhkoya
Created June 27, 2019 17:18
Show Gist options
  • Save trinadhkoya/5bc208c4692a3cb10fdf0889d09a5b1c to your computer and use it in GitHub Desktop.
Save trinadhkoya/5bc208c4692a3cb10fdf0889d09a5b1c to your computer and use it in GitHub Desktop.
The below snippet disables the font scaling through out your react native app.
if (Text.defaultProps == null) {
Text.defaultProps = {};
Text.defaultProps.allowFontScaling = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment