Commit 7332c295 authored by huanglu's avatar huanglu

fix: update

parent 47c87102
import React from 'react' import React from 'react'
import { BaseRouteConfig } from "./routes" import { BaseRouteConfig } from "./routes"
import { createStackNavigator } from "@react-navigation/stack" import { createStackNavigator } from "@react-navigation/stack"
import { Text } from 'react-native'
const Stack = createStackNavigator() const Stack = createStackNavigator()
......
...@@ -17,8 +17,10 @@ export type BaseRouteConfig = { ...@@ -17,8 +17,10 @@ export type BaseRouteConfig = {
children?: Array<BaseRouteConfig>, children?: Array<BaseRouteConfig>,
} }
export type TabRouteCofnig = BaseRouteConfig & { export type TabRouteCofnig = {
name: string,
options?: BottomTabNavigationOptions, options?: BottomTabNavigationOptions,
children?: Array<BaseRouteConfig>,
} }
const routesConfig: { const routesConfig: {
...@@ -26,7 +28,6 @@ const routesConfig: { ...@@ -26,7 +28,6 @@ const routesConfig: {
} = { } = {
tabs: [ tabs: [
{ {
title: 'home',
name: 'Home', name: 'Home',
options: { options: {
tabBarLabel: 'home', tabBarLabel: 'home',
...@@ -48,7 +49,6 @@ const routesConfig: { ...@@ -48,7 +49,6 @@ const routesConfig: {
] ]
}, },
{ {
title: 'About',
name: 'About', name: 'About',
options: { options: {
tabBarLabel: 'About', tabBarLabel: 'About',
...@@ -66,7 +66,6 @@ const routesConfig: { ...@@ -66,7 +66,6 @@ const routesConfig: {
] ]
}, },
{ {
title: 'Person',
name: 'Person', name: 'Person',
options: { options: {
tabBarLabel: 'Person', 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