title: react native prop allowFontScaling not working on android
body: <p>I'm new in <strong>react-native</strong> and want to fix text size in all screens of app if I increase text size from device settings then also font size of should be same I had tried:</p>
  <pre><code>Text.defaultProps.allowFontScaling=false;
  </code></pre>
  <p>in android.index.js
  and</p>
  <pre><code>public void adjustFontScale(Context context, Configuration configuration) {
      configuration.fontScale =(float) 0.85;
      DisplayMetrics metrics = context.getResources().getDisplayMetrics();
      WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
      wm.getDefaultDisplay().getMetrics(metrics);
      metrics.scaledDensity = configuration.fontScale * metrics.density;
      context.getResources().updateConfiguration(configuration, metrics);
  
  }
  </code></pre>
  <p>in mainactivity.js called in <code>oncreate()</code> after <code>super.onCreate();</code></p>
  <p>and also custom theme linked from AndroidManifest.xml not worked</p>
  <p>if someone is having another solution for this please help me.</p>
  <p>its working perfectly on ios device.</p>