-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
47 lines (44 loc) · 1.36 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
44
45
46
47
// import 'react-native-gesture-handler';
import * as React from 'react';
import { Platform } from "react-native";
import { createTheme, lightColors, ThemeProvider } from "@rneui/themed";
// import { NavigationContainer } from "@react-navigation/native";
// import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { AppProvider } from './context/Context';
import { TopComponent } from './components/TopComponent';
const theme = createTheme({
lightColors: {
...Platform.select({
default: lightColors.platform.android,
ios: lightColors.platform.ios,
web: lightColors.platform.web,
}),
primaryLight: "#73a2fa",
icon: "#000",
buttonIcon: "#fff",
text: "#000",
buttonText: "#fff",
},
darkColors: {
...Platform.select({
default: lightColors.platform.android,
ios: lightColors.platform.ios,
web: lightColors.platform.web,
}),
primaryLight: "#302f2f",
icon: "#fff",
buttonIcon: "#000",
text: "#fff",
buttonText: "#000",
},
});
// const Stack = createStackNavigator();
export default function App() {
return (
<ThemeProvider theme={theme}>
<AppProvider>
<TopComponent />
</AppProvider>
</ThemeProvider>
);
}