-
Notifications
You must be signed in to change notification settings - Fork 5
/
App.js
36 lines (27 loc) · 885 Bytes
/
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
import React, { useEffect } from 'react';
import { StyleSheet, Text, View, StatusBar } from 'react-native';
import Navigator from './navigator/Navigator';
import { combineReducers } from 'redux';
import { configureStore } from '@reduxjs/toolkit';
import { Provider } from 'react-redux';
import AuthReducer from './store/auth';
import ProfileReducer from './store/profile';
import { ThemeManager } from './theme/ThemeManager';
import { initializeFirebase } from './firebase/initializeFirebase';
initializeFirebase();
console.disableYellowBox = true;
const reducer = combineReducers({
auth: AuthReducer,
profile: ProfileReducer,
});
const store = configureStore({ reducer });
export default function App() {
return (
<Provider store={store}>
<ThemeManager>
<Navigator />
</ThemeManager>
</Provider>
);
}
const styles = StyleSheet.create({});