-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
31 lines (28 loc) · 1.06 KB
/
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
29
30
31
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { ErrorBoundary } from "react-error-boundary";
import AppNavigator from "./navigation/AppNavigator";
import { WalletProvider } from "./contexts/WalletContext";
import { ContactProvider } from "./contexts/ContactContext";
import { ThemeProvider } from "./contexts/ThemeContext";
import ErrorFallback from "./components/ErrorFallback";
const ErrorFallbackComponent = ({ error, resetErrorBoundary }) => (
<ErrorFallback error={error} resetErrorBoundary={resetErrorBoundary} />
);
const App = () => (
<ErrorBoundary FallbackComponent={ErrorFallbackComponent}>
<SafeAreaProvider>
<ThemeProvider>
<WalletProvider>
<ContactProvider>
{/* <NavigationContainer> */}
<AppNavigator />
{/* </NavigationContainer> */}
</ContactProvider>
</WalletProvider>
</ThemeProvider>
</SafeAreaProvider>
</ErrorBoundary>
);
export default App;