-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
39 lines (34 loc) · 1.22 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
import { Text, View } from 'react-native';
import React, { Component, useEffect } from 'react';
import { StatusBar } from 'react-native'
import { NavigationContainer } from '@react-navigation/native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import Navigator from './src/navigator';
import FlashMessage from "react-native-flash-message";
import { Provider } from 'react-redux';
import colors from './src/color';
import { store } from './src/redux/store';
import auth from '@react-native-firebase/auth';
import { useDispatch } from 'react-redux';
import { LogOutAction } from './src/redux/actions/AuthenticationAction';
const App = () => {
//const dispatch = useDispatch()
useEffect(() => {
//dispatch(LogOutAction(''))
auth()
.signOut()
.then(() => console.log('User signed out!'));
}, [])
return (
<Provider store={store}>
<SafeAreaProvider>
<StatusBar backgroundColor={colors.mainColor} barStyle="light-content" />
<NavigationContainer>
<Navigator />
<FlashMessage position="top" style={{ elevation: 1000, zIndex: 1000 }} />
</NavigationContainer>
</SafeAreaProvider>
</Provider>
);
}
export default App