-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
45 lines (41 loc) · 1.38 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
36
37
38
39
40
41
42
43
44
45
import React from "react";
import { theme } from "./theme";
import { NativeBaseProvider } from "native-base";
import { Landing } from "./screens/Landing";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { Dashboard } from "./screens/Dashboard";
import { SignIn } from "./screens/SignIn";
import { LangProvider } from "./context/lang";
import { BalanceProvider } from "./context/balance";
export type RootStackParamList = {
Landing: undefined;
Dashboard: undefined;
SignIn: undefined;
};
const Stack = createNativeStackNavigator<RootStackParamList>();
const App = () => {
return (
<NativeBaseProvider theme={theme}>
<LangProvider>
<BalanceProvider>
<NavigationContainer>
{/*@ts-ignore*/}
<Stack.Navigator
screenOptions={{
headerShown: false,
animation: "default",
}}
initialRouteName="Landing"
>
<Stack.Screen name="Landing" component={Landing} />
<Stack.Screen name="Dashboard" component={Dashboard} />
<Stack.Screen name="SignIn" component={SignIn} />
</Stack.Navigator>
</NavigationContainer>
</BalanceProvider>
</LangProvider>
</NativeBaseProvider>
);
};
export default App;