File tree Expand file tree Collapse file tree
android/app/src/main/java/io/sentry/reactnative/sample
ios/sentryreactnativesample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class MainApplication :
5454 SentryAndroid .init (this ) { options ->
5555 // Only options set here will apply to the Android SDK
5656 // Options from JS are not passed to the Android SDK when initialized manually
57- options.dsn = " https://1df17bd4e543fdb31351dee1768bb679@o447951 .ingest.sentry.io/5428561 "
57+ options.dsn = " https://b61d95875971558bec7d1730e24dfe85@o4509786567475200 .ingest.de. sentry.io/4509830878724176 "
5858 options.isDebug = true
5959
6060 options.beforeSend =
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ - (void)initializeSentry
2828 [SentrySDK startWithConfigureOptions: ^(SentryOptions *options) {
2929 // Only options set here will apply to the iOS SDK
3030 // Options from JS are not passed to the iOS SDK when initialized manually
31- options.dsn = @" https://1df17bd4e543fdb31351dee1768bb679@o447951 .ingest.sentry.io/5428561 " ;
31+ options.dsn = @" https://b61d95875971558bec7d1730e24dfe85@o4509786567475200 .ingest.de. sentry.io/4509830878724176 " ;
3232 options.debug = YES ; // Enabled debug when first installing is always helpful
3333
3434 options.beforeSend = ^SentryEvent *(SentryEvent *event)
Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ const isMobileOs = Platform.OS === 'android' || Platform.OS === 'ios';
5252
5353const reactNavigationIntegration = Sentry . reactNavigationIntegration ( {
5454 routeChangeTimeoutMs : 500 , // How long it will wait for the route change to complete. Default is 1000ms
55- enableTimeToInitialDisplay : isMobileOs ,
55+ // enableTimeToInitialDisplay: isMobileOs,
5656 ignoreEmptyBackNavigationTransactions : false ,
57- enableTimeToInitialDisplayForPreloadedRoutes : true ,
57+ // enableTimeToInitialDisplayForPreloadedRoutes: true,
5858 useDispatchedActionData : true ,
5959} ) ;
6060
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
2+ import * as Sentry from '@sentry/react-native' ;
23import { StyleSheet , View } from 'react-native' ;
34import { Text } from 'react-native-gesture-handler' ;
4- // import { WebView } from 'react-native-webview ';
5+ import { isTurboModuleEnabled } from '@sentry/ react-native/dist/js/utils/environment ' ;
56
67const WebviewScreen = ( ) => {
8+ console . log ( 'ALWX IS TURBO MODULES ENABLED: ' + isTurboModuleEnabled ( ) ) ;
79 return (
810 // <WebView
911 // source={{ uri: 'https://sentry.io' }}
1012 // style={styles.webview}
1113 // />
1214 < View style = { styles . webview } >
15+ < Sentry . TimeToInitialDisplay record = { true } />
1316 < Text >
1417 WebView is disabled due to incompatibilities with the React Native
1518 version 0.79.2
Original file line number Diff line number Diff line change 11import * as Sentry from '@sentry/react-native' ;
22
33export const SENTRY_INTERNAL_DSN =
4- 'https://1df17bd4e543fdb31351dee1768bb679@o447951 .ingest.sentry.io/5428561 ' ;
4+ 'https://b61d95875971558bec7d1730e24dfe85@o4509786567475200 .ingest.de. sentry.io/4509830878724176 ' ;
55
66export const getCurrentDsn = ( ) => {
77 return Sentry . getCurrentHub ( ) . getClient ( ) ?. getOptions ( ) . dsn ;
You can’t perform that action at this time.
0 commit comments