//在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;
网友评论