-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
43 lines (38 loc) · 1.05 KB
/
App.js
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
import * as React from 'react';
import { StatusBar } from 'expo-status-bar';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { useColorScheme } from 'react-native';
import { FilesScreen, File } from './Pages/index.js';
const Stack = createNativeStackNavigator();
const DarkTheme = {
dark: true,
colors: {
primary: '#020529',
background: '#000',
card: '#121212',
text: '#9c8911',
border: '#36395c',
},
};
const LightTheme = {
dark: false,
colors: {
primary: '#020529',
background: '#fff',
card: '#cbdef2',
text: '#000',
border: '#cbdef2',
}
}
export default function App() {
const scheme = useColorScheme();
return (
<NavigationContainer theme={scheme === 'dark' ? DarkTheme : LightTheme}>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={FilesScreen} />
<Stack.Screen name="File" component={File} />
</Stack.Navigator>
</NavigationContainer>
);
}