We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db98904 commit 2d56de7Copy full SHA for 2d56de7
app/_layout.tsx
@@ -25,6 +25,7 @@ import {
25
} from "react-native-exception-handler";
26
import { reportError, safeReport } from "@/services/errorReporting.service";
27
import { showFatalErrorNotification } from "@/utils/notifications.utils";
28
+import { setupGlobalErrorHandlers } from "../utils/globalErrorhandler";
29
30
// --- Global Exception Handler Setup ---
31
@@ -106,6 +107,10 @@ export default function RootLayout() {
106
107
function RootLayoutNav() {
108
const colorScheme = useColorScheme();
109
110
+ useEffect(() => {
111
+ setupGlobalErrorHandlers();
112
+ }, []);
113
+
114
return (
115
<ErrorBoundary>
116
<ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}>
0 commit comments