Skip to content

Commit 940bd65

Browse files
authored
fix(expo-sample): replace isExpoGo with isRunningInExpoGo (#4892)
1 parent 0e42017 commit 940bd65

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

samples/expo/app/_layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import FontAwesome from '@expo/vector-icons/FontAwesome';
22
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native';
3+
import { isRunningInExpoGo } from 'expo';
34
import { useFonts } from 'expo-font';
45
import { SplashScreen, Stack, useNavigationContainerRef } from 'expo-router';
56
import { useEffect } from 'react';
67

78
import { useColorScheme } from '@/components/useColorScheme';
89
import { SENTRY_INTERNAL_DSN } from '../utils/dsn';
910
import * as Sentry from '@sentry/react-native';
10-
import { isExpoGo } from '../utils/isExpoGo';
1111
import { LogBox } from 'react-native';
1212
import { isWeb } from '../utils/isWeb';
1313
import * as ImagePicker from 'expo-image-picker';
@@ -23,7 +23,7 @@ LogBox.ignoreAllLogs();
2323
SplashScreen.preventAutoHideAsync();
2424

2525
const navigationIntegration = Sentry.reactNavigationIntegration({
26-
enableTimeToInitialDisplay: !isExpoGo(), // This is not supported in Expo Go.
26+
enableTimeToInitialDisplay: !isRunningInExpoGo(), // This is not supported in Expo Go.
2727
});
2828

2929
Sentry.init({

samples/expo/utils/isExpoGo.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)