-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
38 lines (33 loc) · 935 Bytes
/
App.tsx
File metadata and controls
38 lines (33 loc) · 935 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
26
27
28
29
30
31
32
33
34
35
36
37
38
import React from "react";
import "src/config/ReactotronConfig";
import { StatusBar } from "expo-status-bar";
import { ThemeProvider } from "styled-components/native";
import { theme } from "src/theme";
import { Routes } from "src/routes";
import {
Lato_400Regular,
Lato_700Bold,
useFonts,
} from "@expo-google-fonts/lato";
import AppLoading from "expo-app-loading";
import { Provider } from "react-redux";
import configureStore from "src/Redux/store";
import { LogBox } from "react-native";
export default function App() {
LogBox.ignoreLogs(["Setting a timer"]);
const [fontsLoaded] = useFonts({
Lato_400Regular,
Lato_700Bold,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<Provider store={configureStore}>
<ThemeProvider theme={theme}>
<StatusBar style="light" backgroundColor={theme.colors.heading} />
<Routes />
</ThemeProvider>
</Provider>
);
}