-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
25 lines (22 loc) · 754 Bytes
/
Copy pathApp.tsx
File metadata and controls
25 lines (22 loc) · 754 Bytes
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
import { StatusBar } from "expo-status-bar";
import { ThemeProvider } from "styled-components";
import { useFontConfig } from "./src/config/hooks/useFontConfig";
import { theme } from "./src/config/theme";
import { ValueSettingsProvider } from "./src/contexts/ValueSettingsContext";
import HomeScreen from "./src/screens/Home";
export default function App() {
const { loading: isLoadingFonts } = useFontConfig();
if (isLoadingFonts) {
return null;
}
return (
<>
<StatusBar animated style="light" />
<ThemeProvider theme={theme}>
<ValueSettingsProvider>
<HomeScreen />
</ValueSettingsProvider>
</ThemeProvider>
</>
);
}