-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.tsx
31 lines (26 loc) · 772 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
import React, {useEffect} from 'react';
import {StatusBar} from 'react-native';
import {auth} from '~/auth';
import {useAuth} from '~/auth/auth.hooks';
import {AuthContextProvider} from '~/auth/auth.context';
import PushNotification from '~/app/app.push-notification';
import AppNavigationStack, {SigninNavigation} from '~/app/app.stack-navigator';
const App = () => {
const currentAuth = useAuth();
useEffect(() => {
auth.initGoogleSignIn();
});
return (
<AuthContextProvider value={currentAuth}>
<StatusBar
translucent
barStyle="light-content"
backgroundColor={'#02183b'}
/>
<PushNotification />
<SigninNavigation />
<AppNavigationStack />
</AuthContextProvider>
);
};
export default App;