aboutsummaryrefslogtreecommitdiff
path: root/src/App.tsx
blob: ea3617dc57da0341174d69d6f3cd9370f3cc1b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {NavigationContainer} from '@react-navigation/native';
import React from 'react';
import {Provider} from 'react-redux';
import {navigationRef} from './RootNavigation';
import Routes from './routes';
import store from './store/configureStore';

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

export default App;