Home > Back-end >  I want to ignore default preferences set by the user in react-native
I want to ignore default preferences set by the user in react-native

Time:02-12

I am making an app in react-native but wherever I'm using text I want that to be constant as I set it. For e.g - I don't want my text to be scaled if the user has increased the default font size of his device. In one word - I just want to all the default user preferences/settings on his device.

Thanks!

CodePudding user response:

Use allowFontScaling prop

<Text allowFontScaling={false} />

The doc

  • Related