-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
43 lines (39 loc) · 1.34 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
// Copyright (c) 2022 Joseph Hale
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
import BinaryClockScreen from './src/pages/BinaryClockScreen';
import BinaryClockSettingsScreen from './src/pages/BinaryClockSettingsScreen';
import {NavigationContainer} from '@react-navigation/native';
import RNBootSplash from 'react-native-bootsplash';
import React from 'react';
import Toast from 'react-native-toast-message';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
const App = () => {
return (
<NavigationContainer
onReady={() => RNBootSplash.hide({fade: true, duration: 500})}>
<Stack.Navigator>
<Stack.Screen
name="BinaryClockScreen"
component={BinaryClockScreen}
options={{
title: 'Binary Clock',
headerShown: false,
}}
/>
<Stack.Screen
name="BinaryClockSettingsScreen"
component={BinaryClockSettingsScreen}
options={{
title: 'Binary Clock Settings',
}}
/>
</Stack.Navigator>
<Toast position={'bottom'} />
</NavigationContainer>
);
};
export default App;