-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
28 lines (23 loc) · 919 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
28
import React from "react";
import {QueryClient, QueryClientProvider} from "react-query";
import {NavigationContainer} from "@react-navigation/native";
import {darkTheme, lightTheme} from "./src/constants/themes";
import Navigator from "./src/routes/main";
import {LogBox} from "react-native";
import FlashMessage from "react-native-flash-message";
import colors from "./src/constants/colors";
LogBox.ignoreLogs(["EventEmitter.removeListener"]);
const App = () => {
const queryClient = new QueryClient();
return (
<QueryClientProvider client={queryClient}>
<FlashMessage position="bottom" />
{/* Navigation Container should be rendered at the root of the app */}
<NavigationContainer theme={lightTheme}>
<Navigator />
<FlashMessage position="bottom" backgroundColor={colors.red}/>
</NavigationContainer>
</QueryClientProvider>
);
};
export default App;