Skip to content

Commit 3b30241

Browse files
author
Mariusz Pasinski
committed
fixup: update params in NativeNodeApiHost spec
1 parent 2befad7 commit 3b30241

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/host/cpp/CxxNodeApiHostModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ CxxNodeApiHostModule::CxxNodeApiHostModule(
131131
std::shared_ptr<react::CallInvoker> jsInvoker)
132132
: TurboModule(CxxNodeApiHostModule::kModuleName, jsInvoker) {
133133
methodMap_["requireNodeAddon"] =
134-
MethodMetadata{1, &CxxNodeApiHostModule::requireNodeAddon};
134+
MethodMetadata{3, &CxxNodeApiHostModule::requireNodeAddon};
135135
}
136136

137137
jsi::Value

packages/host/src/react-native/NativeNodeApiHost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { TurboModule } from "react-native";
22
import { TurboModuleRegistry } from "react-native";
33

44
export interface Spec extends TurboModule {
5-
requireNodeAddon(libraryName: string): void;
5+
requireNodeAddon(requiredPath: string, packageName?: string, requiredFrom?: string): void;
66
}
77

88
export default TurboModuleRegistry.getEnforcing<Spec>("NodeApiHost");

0 commit comments

Comments
 (0)