Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/101.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
Ios 当快速点击导航按钮时对本机崩溃作出反应_Ios_React Native_React Navigation - Fatal编程技术网

Ios 当快速点击导航按钮时对本机崩溃作出反应

Ios 当快速点击导航按钮时对本机崩溃作出反应,ios,react-native,react-navigation,Ios,React Native,React Navigation,我使用了react navigation 4.0.10,它有点复杂,带有嵌套导航器。目前它的表现相对较好,只是当我尝试快速导航时,它会崩溃。错误消息是 TypeError:undefined不是对象(正在评估“navigation.state”) 结构是 -bottomTapNavigator(Home, Scan; Scan is a stackNavigator) --HomeScreen --ScanNavigator(stackNavigator, parent for ScanSc

我使用了react navigation 4.0.10,它有点复杂,带有嵌套导航器。目前它的表现相对较好,只是当我尝试快速导航时,它会崩溃。错误消息是

TypeError:undefined不是对象(正在评估“navigation.state”)

结构是

-bottomTapNavigator(Home, Scan; Scan is a stackNavigator)
 --HomeScreen
 --ScanNavigator(stackNavigator, parent for ScanScreen and JourneyNavigator[tabNavigator])
   ---ScanScreen(Real page, initial screen of ScanNavigator, having buttons to navigate(HomeScreen) and navigate(JourneyNavigator))
   ---JourneyNavigator(TabNavigator, including ScreenTest1 and ScreenTest2; having header with back button navigate(ScanScreen) for both ScreenTest1 and ScreenTest2;)
      ---ScreenTest1(Real page)
      ---ScreenTest2(Real page, does not matter in this case)
我要做的是点击ScanNavigator[ScanScreen]->ScreenTest1->ScanScreen(在这里快速点击导航按钮)->主屏幕

在这种情况下,应用程序将崩溃。如果我用正常的配速,那就没问题了

欢迎任何帮助或指导

编辑

我百分之百肯定这与resetOnBlur设置有关。当它设置为false时,问题就消失了。请帮忙