forked from TheBitcoinExplorerApp/bitcoin-explorer-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
63 lines (60 loc) · 1.98 KB
/
App.tsx
File metadata and controls
63 lines (60 loc) · 1.98 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
55
56
57
58
59
60
61
62
63
// eslint-disable-next-line import/no-extraneous-dependencies
/// <reference types="@welldone-software/why-did-you-render" />
// import "./wdyr";
import "react-native-get-random-values";
import Blocks from "src/screens/Blocks";
import Transactions from "src/screens/Transactions";
import { StatusBar } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import QueriesContainer from "src/context/QueriesContainer";
import Configurations from "src/screens/Configurations";
import Home from "src/screens/Home";
const Stack = createNativeStackNavigator();
export const AppQueryApiDataProvider = new QueryClient();
export default function App() {
return (
<QueryClientProvider client={AppQueryApiDataProvider}>
<QueriesContainer>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen
name="Home"
component={Home}
options={{
headerShown: false,
animation: "none",
}}
/>
<Stack.Screen
name="Blocks"
component={Blocks}
options={{
headerShown: false,
animation: "none",
}}
/>
<Stack.Screen
name="Transactions"
component={Transactions}
options={{
headerShown: false,
animation: "none",
}}
/>
<Stack.Screen
name="Settings"
component={Configurations}
options={{
headerShown: false,
animation: "none",
}}
/>
</Stack.Navigator>
<StatusBar />
</NavigationContainer>
</QueriesContainer>
</QueryClientProvider>
);
}