Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/221.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 当应用程序从后台返回时,尽管禁用了缩放选项,Ract本机字体仍会缩放(在正常理解中最小化)_React Native_React Router_React Native Android_React Native Ios - Fatal编程技术网

React native 当应用程序从后台返回时,尽管禁用了缩放选项,Ract本机字体仍会缩放(在正常理解中最小化)

React native 当应用程序从后台返回时,尽管禁用了缩放选项,Ract本机字体仍会缩放(在正常理解中最小化),react-native,react-router,react-native-android,react-native-ios,React Native,React Router,React Native Android,React Native Ios,我正在尝试禁用字体缩放,这会从手机设置中增加 因为我用的是 constructor() { super(); Text.defaultProps = Text.defaultProps || {}; Text.defaultProps.allowFontScaling=false; }; 当我重新加载应用程序或通过硬关闭重新启动应用程序时,它工作正常 但是当我的应用程序在后台时,尝试增加手机设置字体,当应用程序从后台返回时(在正常理解中最小化)。它没有按预期工作

我正在尝试禁用字体缩放,这会从手机设置中增加

因为我用的是

constructor() {
super();
 Text.defaultProps = Text.defaultProps || {};
 Text.defaultProps.allowFontScaling=false; 
};
当我重新加载应用程序或通过硬关闭重新启动应用程序时,它工作正常

但是当我的应用程序在后台时,尝试增加手机设置字体,当应用程序从后台返回时(在正常理解中最小化)。它没有按预期工作