Skip to content

Commit e87bf9b

Browse files
ndurellclaude
andauthored
Remove stale TurboModule scaffolding from iOS native module (#324)
The #ifdef RCT_NEW_ARCH_ENABLED blocks referenced types (NativeKlaviyoReactNativeSdkSpec, NativeKlaviyoReactNativeSdkSpecJSI) that were never implemented — no codegen spec exists. This is the iOS equivalent of the Android cleanup done in PR #194. The module registers via RCT_EXPORT_MODULE() and works in bridgeless mode via the interop layer. Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 714362f commit e87bf9b

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

ios/KlaviyoReactNativeSdk.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11

2-
#ifdef RCT_NEW_ARCH_ENABLED
3-
#import "RNKlaviyoReactNativeSdkSpec.h"
4-
5-
@interface KlaviyoReactNativeSdk : NSObject <NativeKlaviyoReactNativeSdkSpec>
6-
#else
72
#import <React/RCTBridgeModule.h>
83

94
@interface KlaviyoReactNativeSdk : NSObject <RCTBridgeModule>
10-
#endif
115

126
@end

ios/KlaviyoReactNativeSdk.mm

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,4 @@ - (NSDictionary *)constantsToExport {
142142
});
143143
}
144144

145-
// Don't compile this code when we build for the old architecture.
146-
#ifdef RCT_NEW_ARCH_ENABLED
147-
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
148-
(const facebook::react::ObjCTurboModule::InitParams &)params
149-
{
150-
return std::make_shared<facebook::react::NativeKlaviyoReactNativeSdkSpecJSI>(params);
151-
}
152-
#endif
153-
154145
@end

0 commit comments

Comments
 (0)