File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
packages/react-native-nitro-modules Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 147
147
}
148
148
]
149
149
]
150
- },
151
- "codegenConfig" : {
152
- "includesGeneratedCode" : true
153
150
}
154
151
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { TurboModuleRegistry } from 'react-native'
3
3
import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes'
4
4
import { ModuleNotFoundError } from './ModuleNotFoundError'
5
5
6
- export interface Spec extends TurboModule {
6
+ export interface NativeNitroSpec extends TurboModule {
7
7
// Set up
8
8
install ( ) : void
9
9
// Hybrid Objects stuff
@@ -16,12 +16,13 @@ export interface Spec extends TurboModule {
16
16
buildType : 'debug' | 'release'
17
17
}
18
18
19
- let turboModule : Spec | undefined
20
- export function getNativeNitroModules ( ) : Spec {
19
+ let turboModule : NativeNitroSpec | undefined
20
+ export function getNativeNitroModules ( ) : NativeNitroSpec {
21
21
if ( turboModule == null ) {
22
22
try {
23
23
// 1. Get (and initialize) the C++ TurboModule
24
- turboModule = TurboModuleRegistry . getEnforcing < Spec > ( 'NitroModulesCxx' )
24
+ turboModule =
25
+ TurboModuleRegistry . getEnforcing < NativeNitroSpec > ( 'NitroModulesCxx' )
25
26
26
27
// 2. Install Dispatcher and required bindings into the Runtime
27
28
turboModule . install ( )
You can’t perform that action at this time.
0 commit comments