-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
33 lines (28 loc) · 802 Bytes
/
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
import React from "react";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { DefaultTheme, Provider as PaperProvider } from "react-native-paper";
import { COLOR_ACCENT, COLOR_PRIMARY } from "./AppStyles";
import { initializeApp, getApps } from "firebase/app";
import { EntryStackScreen } from "./screens/EntryStackScreen";
const firebaseConfig = require("./keys.json");
if (getApps().length == 0) {
initializeApp(firebaseConfig);
}
const theme = {
...DefaultTheme,
roundness: 2,
colors: {
...DefaultTheme.colors,
primary: COLOR_PRIMARY,
accent: COLOR_ACCENT,
},
};
export default function App() {
return (
<SafeAreaProvider>
<PaperProvider theme={theme}>
<EntryStackScreen />
</PaperProvider>
</SafeAreaProvider>
);
}