diff --git a/packages/core/RNSentryAndroidTester/app/src/test/java/io/sentry/react/expo/SentryReactNativeHostHandlerTest.kt b/packages/core/RNSentryAndroidTester/app/src/test/java/io/sentry/react/expo/SentryReactNativeHostHandlerTest.kt index 5759df7841..93ddd81a9a 100644 --- a/packages/core/RNSentryAndroidTester/app/src/test/java/io/sentry/react/expo/SentryReactNativeHostHandlerTest.kt +++ b/packages/core/RNSentryAndroidTester/app/src/test/java/io/sentry/react/expo/SentryReactNativeHostHandlerTest.kt @@ -68,9 +68,10 @@ class SentryReactNativeHostHandlerTest { val handler = handlerWithoutExpoUpdates() val originalException = RuntimeException("test") - val thrown = assertThrows(RuntimeException::class.java) { - handler.onReactInstanceException(false, originalException) - } + val thrown = + assertThrows(RuntimeException::class.java) { + handler.onReactInstanceException(false, originalException) + } assertSame(originalException, thrown) sentryMock!!.verify({ Sentry.captureException(any()) }, never()) @@ -86,9 +87,10 @@ class SentryReactNativeHostHandlerTest { val handler = handlerWithoutExpoUpdates() val originalException = IllegalStateException("Fabric crash") - val thrown = assertThrows(IllegalStateException::class.java) { - handler.onReactInstanceException(false, originalException) - } + val thrown = + assertThrows(IllegalStateException::class.java) { + handler.onReactInstanceException(false, originalException) + } assertSame(originalException, thrown) val captor = argumentCaptor() @@ -113,7 +115,8 @@ class SentryReactNativeHostHandlerTest { sentryMock = mockStatic(Sentry::class.java).also { it.`when` { Sentry.isEnabled() }.thenReturn(true) - it.`when` { Sentry.captureException(any()) } + it + .`when` { Sentry.captureException(any()) } .thenThrow(RuntimeException("Sentry internal error")) } @@ -122,9 +125,10 @@ class SentryReactNativeHostHandlerTest { // Sentry's internal failure must be swallowed, but the original native exception is still // rethrown so Android's UncaughtExceptionHandler can terminate the process. - val thrown = assertThrows(IllegalStateException::class.java) { - handler.onReactInstanceException(false, originalException) - } + val thrown = + assertThrows(IllegalStateException::class.java) { + handler.onReactInstanceException(false, originalException) + } assertSame(originalException, thrown) } diff --git a/samples/expo/app/(tabs)/_layout.tsx b/samples/expo/app/(tabs)/_layout.tsx index 3bc8bc3749..2686f2179b 100644 --- a/samples/expo/app/(tabs)/_layout.tsx +++ b/samples/expo/app/(tabs)/_layout.tsx @@ -25,7 +25,8 @@ function InfoButton({ colorScheme }: { colorScheme: string }) { color: Colors[colorScheme === 'dark' ? 'dark' : 'light'].text, marginRight: 15, opacity: pressed ? 0.5 : 1, - }}> + }} + > ⓘ )} diff --git a/samples/expo/app/_layout.tsx b/samples/expo/app/_layout.tsx index e2406d3aba..d7486fedaa 100644 --- a/samples/expo/app/_layout.tsx +++ b/samples/expo/app/_layout.tsx @@ -1,8 +1,8 @@ -import { DarkTheme, DefaultTheme, ThemeProvider } from 'expo-router/react-navigation'; import * as Sentry from '@sentry/react-native'; import { isRunningInExpoGo } from 'expo'; import * as ImagePicker from 'expo-image-picker'; import { SplashScreen, Stack } from 'expo-router'; +import { DarkTheme, DefaultTheme, ThemeProvider } from 'expo-router/react-navigation'; import { useEffect } from 'react'; import { LogBox } from 'react-native';