-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
28 lines (25 loc) · 837 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
import { NavigationContainer } from "@react-navigation/native";
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import { MainNavigator } from "./src/Navigation";
import "react-native-gesture-handler";
import { ApiProvider } from "@reduxjs/toolkit/dist/query/react";
import api from "./src/services/api";
import { PortalHost, PortalProvider } from "@gorhom/portal";
import { AppContextWrapper } from "./src/Context";
const App = () => {
return (
<ApiProvider api={api}>
<PortalProvider>
<AppContextWrapper>
<NavigationContainer>
<MainNavigator />
<PortalHost name="TabBar" />
</NavigationContainer>
</AppContextWrapper>
</PortalProvider>
</ApiProvider>
);
};
export default App;
const styles = StyleSheet.create({});