Skip to content

How to Disable fontScale for Card Title, subTitle & also for react-native-paper componentsΒ #4536

@kirandchavan

Description

@kirandchavan

Ask your Question

I am trying to disable the fontScaling (this is required in my app) all the cases are working except react-native-paper.

This is the code I have added in index.js (root file)
`Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
Text.defaultProps = {maxFontSizeMultiplier: 1};

TextInput.defaultProps = {};
TextInput.defaultProps.allowFontScaling = false;`

for all the Text and TextInput component it works except react-native-paper component.

any solution on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    TypographyquestionQuestion related to the library, not an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions