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};
for all the Text and TextInput component it works except react-native-paper component.
any solution on this?
Expected behaviour
It should disable font scaling
How to reproduce?
on iOS change the display to "Larger text"
What have you tried so far?
This is the code I have added in index.js (root file)
`Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
Text.defaultProps = {maxFontSizeMultiplier: 1};
Current behaviour
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?
Expected behaviour
It should disable font scaling
How to reproduce?
on iOS change the display to "Larger text"
What have you tried so far?
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;`
Your Environment
The text was updated successfully, but these errors were encountered: