-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
75 lines (67 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import React from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { useFonts } from 'expo-font';
// Import NativeBase
import { extendTheme, NativeBaseProvider, Box } from 'native-base'
import Container from './Container';
export default function App() {
const [fontLoaded] = useFonts({
Poppins: require('./src/assets/fonts/Poppins-Medium.ttf')
})
const theme = extendTheme({
colors: {
primary: {
50: '#F9EEDD',
100: '#F3DCBA',
200: '#EDCA97',
300: '#E7B974',
400: '#E1A751',
500: '#DC932E',
600: '#C07D21',
700: '#9D671B',
800: '#7A5015',
900: '#57390F',
},
secondary: {
50: '#F9F1F0',
100: '#EED6D3',
200: '#E2BBB6',
300: '#D69999',
400: '#CB7C7C',
500: '#BF5F5F',
600: '#AF4646',
700: '#923A3A',
800: '#752F2F',
900: '#582323',
},
},
fontConfig: {
Poppins: {
400: {
normal: 'Poppins'
}
},
},
fonts: {
body: 'Poppins',
}
})
if (!fontLoaded) {
return null
}
return (
<NativeBaseProvider theme={theme}>
<StatusBar style="auto" />
<Box style={styles.container}>
<Container />
</Box>
</NativeBaseProvider>
)
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
})