You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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};
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?
The text was updated successfully, but these errors were encountered: