@@ -12,6 +12,8 @@ import {
1212 browserGlobalHandlersIntegration ,
1313 browserLinkedErrorsIntegration ,
1414 browserReplayIntegration ,
15+ createNativeFramesIntegrations ,
16+ createReactNativeRewriteFrames ,
1517 debugSymbolicatorIntegration ,
1618 dedupeIntegration ,
1719 deviceContextIntegration ,
@@ -24,7 +26,6 @@ import {
2426 inboundFiltersIntegration ,
2527 mobileReplayIntegration ,
2628 modulesLoaderIntegration ,
27- nativeFramesIntegration ,
2829 nativeLinkedErrorsIntegration ,
2930 nativeReleaseIntegration ,
3031 reactNativeErrorHandlersIntegration ,
@@ -36,7 +37,6 @@ import {
3637 userInteractionIntegration ,
3738 viewHierarchyIntegration ,
3839} from './exports' ;
39- import { createReactNativeRewriteFrames } from './rewriteframes' ;
4040
4141/**
4242 * Returns the default ReactNative integrations based on the current environment.
@@ -104,8 +104,11 @@ export function getDefaultIntegrations(options: ReactNativeClientOptions): Integ
104104 if ( hasTracingEnabled && options . enableAppStartTracking ) {
105105 integrations . push ( appStartIntegration ( ) ) ;
106106 }
107- if ( hasTracingEnabled && options . enableNativeFramesTracking ) {
108- integrations . push ( nativeFramesIntegration ( ) ) ;
107+ const nativeFramesIntegrationInstance = createNativeFramesIntegrations (
108+ hasTracingEnabled && options . enableNativeFramesTracking ,
109+ ) ;
110+ if ( nativeFramesIntegrationInstance ) {
111+ integrations . push ( nativeFramesIntegrationInstance ) ;
109112 }
110113 if ( hasTracingEnabled && options . enableStallTracking ) {
111114 integrations . push ( stallTrackingIntegration ( ) ) ;
0 commit comments