-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
executable file
·54 lines (48 loc) · 1.59 KB
/
App.tsx
File metadata and controls
executable file
·54 lines (48 loc) · 1.59 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* NFT Arcade React Native App
* https://github.com/facebook/react-native
*
*
* @format
*/
import "react-native-gesture-handler";
import "@ethersproject/shims";
import { ApolloProvider } from "@apollo/react-hooks";
import { NavigationContainer } from "@react-navigation/native";
import React from "react";
import { startNetworkLogging } from "react-native-network-logger";
import { enableScreens } from "react-native-screens";
import { createNativeStackNavigator } from "react-native-screens/native-stack";
import { AuthContextProvider } from "./components/AuthContext";
import { CurrencyContextProvider } from "./components/CurrencyContext";
import CryptOrchidsTabs from "./games/cryptorchids/Tabs";
import Login from "./screens/Login";
import Tabs from "./Tabs";
import client from "./utils/client";
enableScreens();
startNetworkLogging();
const AppStack = createNativeStackNavigator();
const App = () => (
<AuthContextProvider>
<ApolloProvider client={client}>
<CurrencyContextProvider>
<NavigationContainer>
<AppStack.Navigator>
<AppStack.Screen name="Login" component={Login} />
<AppStack.Screen
name="AppTabs"
component={Tabs}
options={{ headerShown: false }}
/>
<AppStack.Screen
name="CryptOrchidsTabs"
component={CryptOrchidsTabs}
options={{ headerShown: false }}
/>
</AppStack.Navigator>
</NavigationContainer>
</CurrencyContextProvider>
</ApolloProvider>
</AuthContextProvider>
);
export default App;