-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
37 lines (31 loc) · 1.01 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from "react";
import {
NativeBaseProvider,
} from "native-base";
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
import { theme } from "./src/theme";
import { Home } from "./src/views/Home";
import { Breed, BreedNavProps } from "./src/views/Breed";
export type RootStackParamList = {
Home: undefined;
Breed: BreedNavProps
};
const Stack = createStackNavigator<RootStackParamList>()
type MyThemeType = typeof theme;
declare module "native-base" {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
interface ICustomTheme extends MyThemeType { }
}
export default function App() {
return (
<NativeBaseProvider theme={theme}>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name='Home' component={Home}></Stack.Screen>
<Stack.Screen name='Breed' component={Breed}></Stack.Screen>
</Stack.Navigator>
</NavigationContainer>
</NativeBaseProvider>
);
}