-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
38 lines (33 loc) · 1022 Bytes
/
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
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, ScrollView } from 'react-native';
import AllHabitButtons from './Components/AllHabitButtons.js';
import Header from "./Components/Header.js"
import Settings from './Components/Settings.js';
import React from 'react';
import { AllHabitsContextProvider } from './Contexts/AllHabitsContext.js';
import { TopVisibleProvider } from './Contexts/TopVisibleContext.js';
import { useCustomFonts } from './Utility/CustomFont.js';
export default function App() {
const {fontsLoaded} = useCustomFonts()
if(!fontsLoaded){
return null
}
return (
<ScrollView style={styles.container}>
<AllHabitsContextProvider>
<TopVisibleProvider>
<Settings/>
<Header/>
</TopVisibleProvider>
<AllHabitButtons/>
</AllHabitsContextProvider>
<StatusBar style="auto" />
</ScrollView>
);
}
const styles = StyleSheet.create({
container: {
backgroundColor:"#000",
flex:1
},
});