//index.js
import { createAppContainer, createSwitchNavigator } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import welcomePage from '../views/welcomePage';
import Tabs from './tabs'
import DetailPage from '../views/DetailPage';
const InitNavigator = createStackNavigator({
WelCome:{
screen:welcomePage,
navigationOptions:{
header:null
}
}
})
const MainNavigator = createStackNavigator({
HomePage:{
screen:Tabs //底部导航路由 配置参考底部导航笔记
}
})
const router = createSwitchNavigator({
Init:InitNavigator,
Main:MainNavigator
},{
initialRouteName:'Init' //先显示
})
export default createAppContainer(router)