-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
48 lines (44 loc) · 1.47 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
48
import AppContextProvider from './src/context/AppContext';
import AttendanceSystem from './src/navigation';
import { initializeApp } from "firebase/app";
import { ToastProvider } from 'react-native-toast-notifications';
import { colors } from './src/constants/colors';
import { hp } from './src/util/dimension';
export default function App() {
const firebaseConfig = {
apiKey: "AIzaSyBaeGV7OramapCPlnYr7uoZBsYCHZmEkf8",
authDomain: "attendancesystem-8bf6d.firebaseapp.com",
projectId: "attendancesystem-8bf6d",
storageBucket: "attendancesystem-8bf6d.appspot.com",
messagingSenderId: "804701387660",
appId: "1:804701387660:web:3f18ee5e3e9a2cf12f74a9"
};
initializeApp(firebaseConfig);
return (
<AppContextProvider>
<ToastProvider
placement="top"
duration={2500}
// successColor="green"
// dangerColor="red"
// warningColor="orange"
// normalColor="#6610F2"
normalColor={colors.primary}
offsetTop={hp(40)}
// renderType={{
// normal: (toast) => (
// <Toast text={toast.message} bgColor="#6610F2" />
// ),
// danger: (toast) => (
// <Toast text={toast.message} bgColor="#F83C33" />
// ),
// success: (toast) => (
// <Toast text={toast.message} bgColor="#45D988" />
// ),
// }}
swipeEnabled={true}>
<AttendanceSystem />
</ToastProvider>
</AppContextProvider>
);
}