React Native - How to detect font size after a font scaling? : <p>I need to detect what is the font size for text component after a font scaling.
Let's say that I have a Text component with font size 18px</p>

<pre><code>&lt;Text style={{fontSize: 18}}&gt;My Text&lt;/Text&gt;
</code></pre>

<p>The user has set a large font through the OS accessibility settings.
Now my text has been rendered with a larger font size (more than 18px).
I'm aware that I can use <code>allowFontScaling={false}</code> but I don't want to lose the text accessibility.
I saw that React native have an API for getting the font scale <code>PixelRatio.getFontScale()</code> but it doesn't work for iOS </p>

<blockquote>
  <p>Returns the scaling factor for font sizes. This is the ratio that is
  used to calculate the absolute font size, so any elements that heavily
  depend on that should use this to do calculations.</p>
  
  <p>If a font scale is not set, this returns the device pixel ratio.</p>
  
  <p>Currently this is only implemented on Android and reflects the user
  preference set in Settings > Display > Font size, on iOS it will
  always return the default pixel ratio. @platform android</p>
</blockquote>

<p>Any ideas?</p>
