Skip to content

Commit 2d56de7

Browse files
Instantiated globalErrorHandler.
1 parent db98904 commit 2d56de7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/_layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
} from "react-native-exception-handler";
2626
import { reportError, safeReport } from "@/services/errorReporting.service";
2727
import { showFatalErrorNotification } from "@/utils/notifications.utils";
28+
import { setupGlobalErrorHandlers } from "../utils/globalErrorhandler";
2829

2930
// --- Global Exception Handler Setup ---
3031

@@ -106,6 +107,10 @@ export default function RootLayout() {
106107
function RootLayoutNav() {
107108
const colorScheme = useColorScheme();
108109

110+
useEffect(() => {
111+
setupGlobalErrorHandlers();
112+
}, []);
113+
109114
return (
110115
<ErrorBoundary>
111116
<ThemeProvider value={colorScheme === "dark" ? DarkTheme : DefaultTheme}>

0 commit comments

Comments
 (0)