forked from AmericaSCORESBayArea/AmericaScores-CoachApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (28 loc) · 1.15 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
import React from 'react';
import * as eva from '@eva-design/eva';
import { ApplicationProvider, IconRegistry } from '@ui-kitten/components';
import { EvaIconsPack } from '@ui-kitten/eva-icons';
import AppNavigator from './src/AppNavigator.Screen';
import * as AppAuth from 'expo-app-auth';
import { Provider } from 'react-redux';
import { default as theme } from './assets/ASBA_Theme_Light_v1.json'; // <-- Import app theme
import {ApiConfig} from "./src/config/ApiConfig";
import configureStore from './src/config/ConfigureStore';
import Axios from 'axios';
// When configured correctly, URLSchemes should contain your REVERSED_CLIENT_ID
const { URLSchemes } = AppAuth;
const store = configureStore()
export default function App() {
Axios.defaults.headers.common['client_id'] = ApiConfig.clientId;
Axios.defaults.headers.common['client_secret'] = ApiConfig.clientSecret;
return (
<>
<IconRegistry icons={EvaIconsPack}/>
<ApplicationProvider store={configureStore} {...eva} theme={{...eva.light, ...theme}}>
<Provider store={store}>
<AppNavigator/>
</Provider>
</ApplicationProvider>
</>
);
}