Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kirandchavan opened this issue Oct 28, 2024 · 1 comment
Labels
question Question related to the library, not an issue

Comments

@kirandchavan
Copy link

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?

@kirandchavan kirandchavan added the question Question related to the library, not an issue label Oct 28, 2024
@kirandchavan
Copy link
Author

Does anyone have a solution or workaround for this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question related to the library, not an issue
Projects
None yet
Development

No branches or pull requests

1 participant