-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (37 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
34
35
36
37
38
39
40
import React, { useEffect, useContext } from 'react';
import { withAuthenticator } from 'aws-amplify-react-native';
import Amplify from 'aws-amplify';
import awsExports from './aws-exports';
import { DarkTheme, DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
Amplify.configure(awsExports);
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { UserProvider } from './src/context/UserContext';
import Authentication from './src/components/Authentication';
import { View } from 'react-native';
import Navbar from './src/components/Navbar';
const BaseTheme = {
...DarkTheme,
myOwnProperty: true,
fontFamily: 'Roboto',
colors: {
plPurple: '#4E389D',
plYellow: '#FBB040',
plGreen: '#86C641',
plPink: '#F173AC',
plOrange: '#F58220',
background: 'black',
},
};
const App = () => {
return (
<SafeAreaProvider>
<PaperProvider theme={BaseTheme}>
<UserProvider>
<Navbar></Navbar>
<Authentication style={{ backgroundColor: 'black' }}></Authentication>
</UserProvider>
</PaperProvider>
</SafeAreaProvider>
);
};
export default withAuthenticator(App);