-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
21 lines (19 loc) · 718 Bytes
/
App.js
File metadata and controls
21 lines (19 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from 'react';
import { StyleSheet } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import Main from './components/Main';
import AlarmPage from './components/AlarmPage';
import AddAlarm from './components/AddAlarm';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Main" component={Main} />
<Stack.Screen name="Alarms" component={AlarmPage} />
<Stack.Screen name="AddAlarm" component={AddAlarm} />
</Stack.Navigator>
</NavigationContainer>
);
}