React native 为什么本机导航一直转到NotFound屏幕?

React native 为什么本机导航一直转到NotFound屏幕?,react-native,react-navigation,React Native,React Navigation,我刚刚添加了新屏幕,但react本机导航在保存更新时一直指向NotFound。为什么? expo init的索引导航应该是这样的(我不做任何更改) 而导航器应该是这样的 <BottomTab.Navigator initialRouteName="Require" tabBarOptions={{ activeTintColor: Colors[colorScheme].tint, showLabel: fal

我刚刚添加了新屏幕,但react本机导航在保存更新时一直指向NotFound。为什么?

expo init的索引导航应该是这样的(我不做任何更改)


而导航器应该是这样的

<BottomTab.Navigator
      initialRouteName="Require"
      tabBarOptions={{
        activeTintColor: Colors[colorScheme].tint,
        showLabel: false,
      }}
    >
      <BottomTab.Screen
        name="Require"
        component={RequireNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-bonfire-outline" color={color} />
          ),
        }}
      />
      <BottomTab.Screen
        name="Serve"
        component={ServeNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-grid-outline" color={color} />
          ),
        }}
      />
      <BottomTab.Screen
        name="Publish"
        component={PublishNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-add" color={color} />
          ),
        }}
      />
      <BottomTab.Screen
        name="Chat"
        component={ServeNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-chatbubbles-outline" color={color} />
          ),
        }}
      />

      <BottomTab.Screen
        name="About"
        component={AboutNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-information-circle-outline" color={color} />
          ),
        }}
      />
    </BottomTab.Navigator>

(
),
}}
/>
(
),
}}
/>
(
),
}}
/>
(
),
}}
/>
(
),
}}
/>

您可以在此处阅读我的完整代码:

我认为问题出在,但我不知道问题出在哪里。您可以尝试删除
上的
链接
道具,谢谢@masbossun,是的,链接存在配置问题,我刚刚修改了配置文件以更改选项卡导航结构。很高兴您找到了问题。
<BottomTab.Navigator
      initialRouteName="Require"
      tabBarOptions={{
        activeTintColor: Colors[colorScheme].tint,
        showLabel: false,
      }}
    >
      <BottomTab.Screen
        name="Require"
        component={RequireNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-bonfire-outline" color={color} />
          ),
        }}
      />
      <BottomTab.Screen
        name="Serve"
        component={ServeNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-grid-outline" color={color} />
          ),
        }}
      />
      <BottomTab.Screen
        name="Publish"
        component={PublishNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-add" color={color} />
          ),
        }}
      />
      <BottomTab.Screen
        name="Chat"
        component={ServeNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-chatbubbles-outline" color={color} />
          ),
        }}
      />

      <BottomTab.Screen
        name="About"
        component={AboutNavigator}
        options={{
          tabBarIcon: ({ color }) => (
            <TabBarIcon name="ios-information-circle-outline" color={color} />
          ),
        }}
      />
    </BottomTab.Navigator>