aboutsummaryrefslogtreecommitdiff
path: root/src/App.tsx
blob: 92d26ba701c6c4a6ac09d2a5c42f3ae56451112b (plain)
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
import React, {useEffect} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import Routes from './routes';
import {Provider} from 'react-redux';
import store from './store/configureStore';
import {fcmService} from './services/FCMService';

const App = () => {
  useEffect(() => {
    fcmService.setUpPushNotifications();
    //If permissions are not there, deactivateFcmService
  });

  return (
    /**
     * This is the provider from the redux store, it acts as the root provider for our application
     */
    <Provider store={store}>
      <NavigationContainer>
        <Routes />
      </NavigationContainer>
    </Provider>
  );
};

export default App;