-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
31 lines (27 loc) · 812 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
import React, { useEffect } from "react";
import { View } from "react-native";
import styled from "styled-components/native";
import { StatusBar } from "expo-status-bar";
import RootNavigation from "./src/screens/navigation/RootNavigation";
import Toast from "react-native-toast-message";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { Provider } from 'react-redux';
import { store } from './src/redux/store';
const App = () => {
const queryClient = new QueryClient();
return (
<Provider store={store}>
<Container>
<StatusBar style="auto" />
<QueryClientProvider client={queryClient}>
<RootNavigation />
</QueryClientProvider>
<Toast />
</Container>
</Provider>
);
};
export default App;
export const Container = styled(View)`
flex: 1;
`;