Skip to content

allowFontScaling = false not working on react native 0.78.1 #4715

@Ahmed-Bilal-01

Description

@Ahmed-Bilal-01

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:

Image

With increasing font scale:

Image

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions