Skip to content

Commit 6e295a9

Browse files
committed
fix(core): Use direct property access for Linking to avoid Babel duplicate declaration
Replace destructured import with direct property access on require result as suggested by @antonis to fix the persisting Babel/Metro build error.
1 parent 5f4ed90 commit 6e295a9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/core/src/js/integrations/deeplink.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ const _deeplinkIntegration: IntegrationFn = () => {
116116
function tryGetLinking(): RNLinking | null {
117117
try {
118118
// eslint-disable-next-line @typescript-eslint/no-var-requires
119-
const { Linking: rnLinking } = require('react-native') as { Linking: RNLinking };
120-
return rnLinking ?? null;
119+
return (require('react-native') as { Linking: RNLinking }).Linking ?? null;
121120
} catch {
122121
return null;
123122
}

0 commit comments

Comments
 (0)