-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
37 lines (35 loc) · 1.18 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
//imports
import "react-native-gesture-handler";
import React from "react";
import { NativeBaseProvider } from "native-base";
import { Provider as PaperProvider } from "react-native-paper";
//Conext
import { StateProvider } from "./store/index";
//Navigation btw screens
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
//Screens
import Welcome from "./screens/Welcome";
import Dashboard from "./screens/Dashboard";
import Analysis from "./screens/Analysis";
const Stack = createStackNavigator();
export default function App() {
return (
<StateProvider>
<NativeBaseProvider>
<PaperProvider>
<NavigationContainer>
<Stack.Navigator
initialRouteName="Splash"
screenOptions={{ headerShown: false }}
>
<Stack.Screen name="Welcome" component={Welcome} />
<Stack.Screen name="Dashboard" component={Dashboard} />
<Stack.Screen name="Analysis" component={Analysis} />
</Stack.Navigator>
</NavigationContainer>
</PaperProvider>
</NativeBaseProvider>
</StateProvider>
);
}