没有为 Key X

我正在开发一个应用程序,在该应用程序中我使用 react-native-router-flux@4.3.1 进行导航,但出现此错误:

There is no route defined for Key tos.
Must be one of: 'splash','drawer'.

这是我的路由器:

<Router>
      <Scene key="root">
        <Scene intial key="splash" hideNavBar component={SplashScreen} />
        <Drawer hideNavBar key="drawer" component={DrawerContent} drawerWidth={300}>
          <Scene
            key="drawerChildrenWrapper"
            navigationBarStyle={Styles.navBar}
            titleStyle={Styles.title}
            leftButtonIconStyle={Styles.leftButton}
            rightButtonTextStyle={Styles.rightButton}
          >
            <Scene
              initial
              key="home"
              component={PresentationScreen}
              title=""
              renderLeftButton={NavItems.hamburgerButton}
            />
            <Scene key="tos" component={TOSScreen} title="" />
          </Scene>
        </Drawer>
      </Scene>
    </Router>
sophiezelmani927 回答:没有为 Key X

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/99502.html

大家都在问