Skip to content

Commit 331e60e

Browse files
committed
feat: update RNIterableAPI to ReactIterableAPI and adjust configuration for TurboModule support
1 parent 2a7d8d3 commit 331e60e

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

example/react-native.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
ios: {
77
automaticPodsInstallation: true,
88
},
9+
android: {},
910
},
1011
dependencies: {
1112
[pkg.name]: {

ios/RNIterableAPI/RNIterableAPI.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@
66
// Copyright © 2025 Iterable. All rights reserved.
77
//
88
#import <React/RCTBridgeModule.h>
9+
#import <React/RCTTurboModule.h>
10+
11+
@interface ReactIterableAPI : NSObject <RCTBridgeModule, RCTTurboModule>
12+
@end
913

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@
167167
]
168168
},
169169
"codegenConfig": {
170-
"name": "RNIterableSpec",
170+
"name": "ReactIterableAPI",
171171
"type": "modules",
172-
"jsSrcsDir": "src",
172+
"jsSrcsDir": "./src/api",
173173
"android": {
174174
"javaPackageName": "com.iterable.reactnative"
175175
}

src/api/NativeRNIterableAPISpec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ export interface Spec extends TurboModule {
110110
passAlongAuthToken(authToken: string | null): void;
111111
}
112112

113-
export default TurboModuleRegistry.getEnforcing<Spec>('RNIterableAPI');
113+
export default TurboModuleRegistry.getEnforcing<Spec>('ReactIterableAPI');

0 commit comments

Comments
 (0)