-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
38 lines (35 loc) · 806 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
import { ThemeProvider } from "styled-components";
import {
useFonts,
Inter_300Light,
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_700Bold,
} from "@expo-google-fonts/inter";
import theme from "./src/theme";
import { StatusBar } from "react-native";
import { Home } from "./src/screens/Home";
import { Announcement } from "./src/screens/Announcement";
export default function App() {
let [fontsLoaded] = useFonts({
Inter_300Light,
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_700Bold,
});
if (!fontsLoaded) {
return null;
}
return (
<ThemeProvider theme={theme}>
<StatusBar
barStyle="light-content"
backgroundColor="transparent"
translucent
/>
<Home />
</ThemeProvider>
);
}