-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
27 lines (24 loc) · 820 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
import { StatusBar as ExpoStatusBar } from "expo-status-bar";
import { StyleSheet } from "react-native";
import { RestaurantsScreen } from "./src/components/utils/features/Restaurants/screens/restaurants.screen";
import { ThemeProvider } from "styled-components/native";
import { theme } from "./src/infrastructure/theme";
import { useFonts, Oswald_400Regular } from "@expo-google-fonts/oswald";
import { Lato_400Regular } from "@expo-google-fonts/lato";
export default function App() {
let [oswaldLoaded] = useFonts({
Oswald_400Regular,
});
let [latoLoaded] = useFonts({
Lato_400Regular,
});
if (!latoLoaded || !oswaldLoaded) return null;
return (
<>
<ThemeProvider theme={theme}>
<RestaurantsScreen />
</ThemeProvider>
<ExpoStatusBar style="auto" />
</>
);
}