I have developed an app and currently working on it iOS side. By increasing the font size from mobile's setting disturbs all the UI of the app even have applied allowFontScaling = false globally from index.js.
With normal scaling:
With increasing font scale:
my index.js:
import { Text,TextInput, AppRegistry } from "react-native";
import App from "./App";
import { name as appName } from "./app.json";
Text.defaultProps = Text.defaultProps || {};
TextInput.defaultProps = TextInput.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
TextInput.defaultProps.allowFontScaling = false;
AppRegistry.registerComponent(appName, () => App);
I have developed an app and currently working on it iOS side. By increasing the font size from mobile's setting disturbs all the UI of the app even have applied allowFontScaling = false globally from index.js.
With normal scaling:
With increasing font scale:
my index.js:
import { Text,TextInput, AppRegistry } from "react-native";
import App from "./App";
import { name as appName } from "./app.json";
Text.defaultProps = Text.defaultProps || {};
TextInput.defaultProps = TextInput.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
TextInput.defaultProps.allowFontScaling = false;
AppRegistry.registerComponent(appName, () => App);