Skip to content

Commit

Permalink
fix(ui): disable font scaling (temp)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Nov 4, 2022
1 parent 6977a6a commit 75c9dce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { AppRegistry } from 'react-native';
import { AppRegistry, Text } from 'react-native';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';

import Root from './Root';
import { name as appName } from './app.json';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';

// TEMP: disable font scaling for globally
Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.allowFontScaling = false;

AppRegistry.registerComponent(appName, () => gestureHandlerRootHOC(Root));

0 comments on commit 75c9dce

Please sign in to comment.