-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
44 lines (39 loc) · 1.1 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
import React, { useEffect } from "react";
import { ThemeProvider } from "emotion-theming";
import { AppLoading } from "expo";
import {
useFonts,
Quattrocento_400Regular,
Quattrocento_700Bold,
} from "@expo-google-fonts/quattrocento";
import {
FanwoodText_400Regular,
FanwoodText_400Regular_Italic,
} from "@expo-google-fonts/fanwood-text";
import { H1, H3 } from "./Components/Text";
import { Layout } from "./Components/Layout.native";
import { Products } from "./Components/Products.native";
import { SearchBar } from "./Components/SearchBar.native";
import { theme } from "./theme";
export default function App() {
let [fontsLoaded] = useFonts({
Quattrocento_400Regular,
Quattrocento_700Bold,
FanwoodText_400Regular,
FanwoodText_400Regular_Italic,
});
if (!fontsLoaded) {
return <AppLoading />;
} else {
return (
<ThemeProvider theme={theme}>
<Layout>
<H1>Find and Seek</H1>
<H3>FIND THE PERFECT PIECE FROM ANYWHERE ON THE INTERNET</H3>
<SearchBar />
<Products />
</Layout>
</ThemeProvider>
);
}
}