-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
31 lines (28 loc) · 793 Bytes
/
App.js
File metadata and controls
31 lines (28 loc) · 793 Bytes
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
import React from "react";
import { AuthProvider } from "./contexts/AuthContext";
import AppNavigator from "./navigation/AppNavigator";
import { Provider as PaperProvider, DefaultTheme } from "react-native-paper";
import { StatusBar } from 'react-native';
import { enableScreens } from 'react-native-screens';
import './config/firebase'; // Ensure Firebase is initialized
enableScreens();
const theme = {
...DefaultTheme,
roundness: 8, // added
colors: {
...DefaultTheme.colors,
primary: "#4CAF50",
accent: "#2196F3",
background: "#f5f5f5",
},
};
export default function App() {
return (
<AuthProvider>
<PaperProvider theme={theme}>
<StatusBar barStyle="dark-content" />
<AppNavigator />
</PaperProvider>
</AuthProvider>
);
}