Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SENTRY_AUTH_TOKEN=
8 changes: 8 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ const config: ExpoConfig = {
"expo-dev-client",
"@react-native-firebase/app",
"@react-native-firebase/messaging",
[
"@sentry/react-native/expo",
{
url: "https://edumfa.edumfa.io/",
project: "app",
organization: "edumfa",
},
],
[
"expo-splash-screen",
{
Expand Down
71 changes: 60 additions & 11 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { getSentryExpoConfig } = require("@sentry/react-native/metro");

const config = getSentryExpoConfig(__dirname);

module.exports = config;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"@react-native-firebase/app": "^23.8.8",
"@react-native-firebase/messaging": "^23.8.8",
"@scure/base": "^2.2.0",
"expo": "^56.0.5",
"@sentry/react-native": "^8.13.0",
"expo": "^56.0.6",
"expo-blur": "~56.0.3",
"expo-build-properties": "~56.0.15",
"expo-camera": "~56.0.7",
Expand Down Expand Up @@ -75,7 +76,7 @@
"jest": {
"preset": "jest-expo",
"transformIgnorePatterns": [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)"
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|@sentry/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)"
]
}
}
6 changes: 5 additions & 1 deletion src/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useNotificationStore } from "@/store/notificationStore";
import { useTokenStore } from "@/store/tokenStore";
import { theme, useInterFonts } from "@/theme";
import { activateCurrentLocale } from "@/utils/locale";
import { initSentry, withSentryRoot } from "@/utils/sentry";
import { isTokenEnrollmentUri } from "@/utils/tokenUtils";
import { i18n } from "@lingui/core";
import { I18nProvider } from "@lingui/react";
Expand All @@ -20,9 +21,10 @@ import {
useColorScheme,
} from "react-native";

initSentry();
activateCurrentLocale();

export default function RootLayout() {
function RootLayout() {
const [fontsLoaded] = useInterFonts();

useEffect(() => {
Expand Down Expand Up @@ -173,3 +175,5 @@ function RootLayoutContent() {
</Stack>
);
}

export default withSentryRoot(RootLayout);
Loading