-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
76 lines (73 loc) · 2.48 KB
/
App.tsx
File metadata and controls
76 lines (73 loc) · 2.48 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import React from 'react';
import { StatusBar } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import CameraScreen from './src/screens/CameraScreen';
import GalleryScreen from './src/screens/GalleryScreen';
import PhotoViewerScreen from './src/screens/PhotoViewerScreen';
import VideoViewerScreen from './src/screens/VideoViewerScreen';
import SettingsScreen from './src/screens/SettingsScreen';
import { RootStackParamList, COLORS } from './src/types';
const Stack = createNativeStackNavigator<RootStackParamList>();
function App(): React.JSX.Element {
return (
<SafeAreaProvider>
<StatusBar
barStyle="light-content"
backgroundColor={COLORS.black}
translucent={false}
/>
<NavigationContainer
theme={{
dark: true,
colors: {
primary: COLORS.accent,
background: COLORS.background,
card: COLORS.surface,
text: COLORS.text,
border: COLORS.surfaceLight,
notification: COLORS.accent,
},
fonts: {
regular: { fontFamily: 'System', fontWeight: '400' },
medium: { fontFamily: 'System', fontWeight: '500' },
bold: { fontFamily: 'System', fontWeight: '700' },
heavy: { fontFamily: 'System', fontWeight: '900' },
},
}}
>
<Stack.Navigator
screenOptions={{
headerShown: false,
animation: 'fade',
contentStyle: { backgroundColor: COLORS.background },
}}
>
<Stack.Screen name="Camera" component={CameraScreen} />
<Stack.Screen
name="Gallery"
component={GalleryScreen}
options={{ animation: 'slide_from_right' }}
/>
<Stack.Screen
name="PhotoViewer"
component={PhotoViewerScreen}
options={{ animation: 'fade' }}
/>
<Stack.Screen
name="VideoViewer"
component={VideoViewerScreen}
options={{ animation: 'fade' }}
/>
<Stack.Screen
name="Settings"
component={SettingsScreen}
options={{ animation: 'slide_from_right' }}
/>
</Stack.Navigator>
</NavigationContainer>
</SafeAreaProvider>
);
}
export default App;