forked from andredecarvalh0/find-devs-group-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.jsx
More file actions
60 lines (42 loc) · 1.04 KB
/
App.jsx
File metadata and controls
60 lines (42 loc) · 1.04 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { Poppins_400Regular, Poppins_500Medium, Poppins_700Bold, useFonts } from '@expo-google-fonts/poppins';
import Amplify from 'aws-amplify';
import { StatusBar, StyleSheet, View } from 'react-native';
import awsconfig from './src/aws-exports';
import Navigation from './src/navigation';
import { Provider } from 'react-redux';
import store from './src/store'
import urlOpener from './src/utils/urlOpener';
Amplify.configure({
...awsconfig,
oauth: {
...awsconfig.oauth,
urlOpener
}
})
const App = () => {
let [fontsLoaded] = useFonts({
Poppins_400Regular, Poppins_500Medium, Poppins_700Bold
});
if (!fontsLoaded) {
return null;
}
return (
<View style={styles.container}>
<StatusBar
barStyle='light-content'
translucent={true}
backgroundColor='transparent'
/>
<Provider store={store}>
<Navigation />
</Provider>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#121214',
},
});
export default App