Chipe
Chipe

Reputation: 4801

IOS development with React Native Display Zoomed issue

If a user has their option on their phone set to Zoomed, the text in the app I am developing is actually really zoomed out. (Settings > Display & Brightness > View)

Is there an option in xcode or within my own code that will fix this zoom issue. Maybe disable the zoom view in the app if the user has the option Display Zoom set to Zoomed on their phone.

Standard View:

enter image description here

Settings:

enter image description here

Zoomed setting on:

enter image description here

Is there a fix for this?

Upvotes: 5

Views: 3393

Answers (1)

Nader Dabit
Nader Dabit

Reputation: 53681

You can apply:

allowFontScaling={false}

To prevent this.

So, you can implement it like this:

<Text allowFontScaling={false}>Do not want font to scale</Text>

Upvotes: 1

Related Questions