Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.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 react navigation v5中的堆栈导航器_React Native_React Navigation V5 - Fatal编程技术网

React native react navigation v5中的堆栈导航器

React native react navigation v5中的堆栈导航器,react-native,react-navigation-v5,React Native,React Navigation V5,现在如果我使用 initialRouteName = {'TestSubjectListPage'} screenOptions = {{ gestureEnabled: false }} > { Object.entries({ TestSubjectListPage: getScreenConfiguration(TestSubjectListScreen, Head

现在如果我使用

      initialRouteName = {'TestSubjectListPage'}
      screenOptions = {{ gestureEnabled: false }}
      >
          {
              Object.entries({
                  TestSubjectListPage: getScreenConfiguration(TestSubjectListScreen, HeaderType.NO_HEADER),
                  // ...cartStack,
                  // ...commonTestStack,
                  // ...resultStack,
                  ...coursesCommonStack,
                  // ...pushNotificationStack
              }).map(([name, {component, options}]) => (
                  <Stack.Screen name={name} component = {component} options = {options} />
                ))
          }
initialRouteName={'TestSubjectListPage'}
screenOptions={{gesturenabled:false}
>
{
Object.entries({
TestSubjectListPage:getScreenConfiguration(TestSubjectListScreen,HeaderType.NO_HEADER),
//…马车,
//…commonTestStack,
//…结果跟踪,
…课程Commonstack,
//…pushNotificationStack
}).map(([name,{component,options}])=>(
))
}
因此,当我导航到下一个屏幕时,前一个屏幕也会被调用。但是当我直接使用它的时候

<Stack.Screen name = {'ConceptDetailPage'} component = {ConceptDetailPage}/>

然后一切正常