Commit 7332c295 authored by huanglu's avatar huanglu

fix: update

parent 47c87102
import React from 'react'
import { BaseRouteConfig } from "./routes"
import { createStackNavigator } from "@react-navigation/stack"
import { Text } from 'react-native'
const Stack = createStackNavigator()
......
......@@ -17,8 +17,10 @@ export type BaseRouteConfig = {
children?: Array<BaseRouteConfig>,
}
export type TabRouteCofnig = BaseRouteConfig & {
export type TabRouteCofnig = {
name: string,
options?: BottomTabNavigationOptions,
children?: Array<BaseRouteConfig>,
}
const routesConfig: {
......@@ -26,7 +28,6 @@ const routesConfig: {
} = {
tabs: [
{
title: 'home',
name: 'Home',
options: {
tabBarLabel: 'home',
......@@ -48,7 +49,6 @@ const routesConfig: {
]
},
{
title: 'About',
name: 'About',
options: {
tabBarLabel: 'About',
......@@ -66,7 +66,6 @@ const routesConfig: {
]
},
{
title: 'Person',
name: 'Person',
options: {
tabBarLabel: 'Person',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment