-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
30 lines (28 loc) · 1.04 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
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Dashboard from './src/screens/Dashboard';
import Profile from './src/screens/Profile';
import SensorHistory from './src/screens/SensorHistory';
import ActionHistory from './src/screens/ActionHistory';
import { Provider } from 'react-redux';
import { store } from './src/redux/store';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Provider store={store}>
<Stack.Navigator
screenOptions={{
headerShown: false
}}
>
<Stack.Screen name="Dashboard" component={Dashboard} />
<Stack.Screen name="Profile" component={Profile} />
<Stack.Screen name="SensorHistory" component={SensorHistory} />
<Stack.Screen name="ActionHistory" component={ActionHistory} />
</Stack.Navigator>
</Provider>
</NavigationContainer>
);
}