-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
40 lines (36 loc) · 909 Bytes
/
App.tsx
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 { SafeAreaView, StyleSheet, Text, ActivityIndicator, View } from 'react-native';
import { Calendar } from './components/calendar/calendar';
import { useDesignFonts } from './hooks/use-design-fonts';
export default function App() {
const { areFontsBeingLoaded } = useDesignFonts();
if (areFontsBeingLoaded) {
return <ActivityIndicator/>;
}
return (
<SafeAreaView style={styles.container}>
<View style={styles.insideContainer}>
<Text style={styles.header}>Calendar</Text>
<Calendar/>
</View>
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#030303'
},
insideContainer: {
width: '100%',
flex: 1,
gap: 16,
justifyContent: 'center',
alignItems: 'stretch',
padding: 16,
},
header: {
fontSize: 32,
color: '#FFF',
fontFamily: 'Poppins-SemiBold',
}
});