美文网首页
嵌套路由用于跳转详情StackNav.js

嵌套路由用于跳转详情StackNav.js

作者: __MX | 来源:发表于2018-10-22 00:06 被阅读0次

    //在com包下新建StackNav.js

    import React, { Component } from "react";

    import { createStackNavigator } from "react-navigation";

    import BottomTabNav from "../com/BottomTabNav";

    import Detail from "../util/Detail";

    //嵌套路由

    const StackNav = createStackNavigator({

      BottomTabNav: {

        screen: BottomTabNav,

        navigationOptions: {

          //去掉顶部导航的标题栏

          header: null

        }

      },

      Detail: Detail

    });

    export default StackNav;

    相关文章

      网友评论

          本文标题:嵌套路由用于跳转详情StackNav.js

          本文链接:https://www.haomeiwen.com/subject/mvtwzftx.html