Skip to content

Commit

Permalink
Disable font scaling for Text and TextInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltout committed Oct 28, 2023
1 parent ed4b7e3 commit 8622f15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,19 @@ import {
DefaultTheme,
configureFonts,
} from 'react-native-paper';
import {
Text,
TextInput
} from 'react-native';
import BigNumber from 'bignumber.js';
import Colors from './src/globals/colors';
import {GestureHandlerRootView} from 'react-native-gesture-handler';

Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
TextInput.defaultProps = Text.defaultProps || {};
TextInput.defaultProps.allowFontScaling = false;

BigNumber.set({ EXPONENTIAL_AT: 1000000, ROUNDING_MODE: BigNumber.ROUND_FLOOR });

const fontConfig = {
Expand Down

0 comments on commit 8622f15

Please sign in to comment.