Skip to content

Commit cabbe3a

Browse files
authored
fix(expo): fix Android new architecture codegen error in NativeClerkModule (#8112)
1 parent 3efdd2c commit cabbe3a

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/expo": patch
3+
---
4+
5+
fix(expo): restore TurboModuleRegistry.get pattern in NativeClerkModule spec to fix Android new architecture codegen error; handle web via NativeClerkModule.web.ts

packages/expo/src/specs/NativeClerkModule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export interface Spec extends TurboModule {
1111
signOut(): Promise<void>;
1212
}
1313

14-
export default TurboModuleRegistry?.get<Spec>('ClerkExpo') ?? null;
14+
export default TurboModuleRegistry.get<Spec>('ClerkExpo');
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Web stub: TurboModuleRegistry doesn't exist on web, so we export null.
2+
// Cast to any to match the native module's Spec | null type without circular imports.
3+
// Metro resolves this file on web via platform-specific extensions (.web.ts).
4+
export default null as any;

0 commit comments

Comments
 (0)