@@ -16,6 +16,7 @@ import { isRunningInExpoGo } from "expo";
1616import Toast from "react-native-toast-message" ;
1717import { toastConfig } from "../toast.config" ;
1818import * as Notifications from "expo-notifications" ;
19+ import AppModeContextProvider from "../contexts/app-mode/AppModeContext.provider" ;
1920
2021// Construct a new instrumentation instance. This is needed to communicate between the integration and React
2122const routingInstrumentation = new Sentry . ReactNavigationInstrumentation ( ) ;
@@ -41,7 +42,7 @@ Sentry.init({
4142 enableNative : true ,
4243 environment : process . env . EXPO_PUBLIC_ENVIRONMENT ,
4344 attachScreenshot : true ,
44- enabled : ! __DEV__ ,
45+ enabled : false ,
4546 // Set tracesSampleRate to 1.0 to capture 100%
4647 // of transactions for performance monitoring.
4748 // We recommend adjusting this value in production
@@ -59,6 +60,7 @@ Sentry.init({
5960SplashScreen . preventAutoHideAsync ( ) ;
6061
6162function RootLayout ( ) {
63+ console . log ( "RootLayout" ) ;
6264 const [ loaded ] = useFonts ( {
6365 Roboto : require ( "../assets/fonts/Roboto-Medium.ttf" ) ,
6466 RobotoRegular : require ( "../assets/fonts/Roboto-Regular.ttf" ) ,
@@ -95,9 +97,11 @@ function RootLayout() {
9597 < PortalProvider >
9698 < LanguageContextProvider >
9799 < EasUpdateMonitorContextProvider >
98- < Slot />
99- < Toast config = { toastConfig } position = "top" />
100- < NetInfoBanner />
100+ < AppModeContextProvider >
101+ < Slot />
102+ < Toast config = { toastConfig } position = "top" />
103+ < NetInfoBanner />
104+ </ AppModeContextProvider >
101105 </ EasUpdateMonitorContextProvider >
102106 </ LanguageContextProvider >
103107 </ PortalProvider >
0 commit comments