-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRNRealPathSpecJSI-generated.cpp
More file actions
27 lines (21 loc) · 964 Bytes
/
Copy pathRNRealPathSpecJSI-generated.cpp
File metadata and controls
27 lines (21 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GenerateModuleCpp.js
*/
#include "RNRealPathSpecJSI.h"
namespace facebook::react {
static jsi::Value __hostFunction_NativeRealPathCxxSpecJSI_getPath(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
return static_cast<NativeRealPathCxxSpecJSI *>(&turboModule)->getPath(
rt,
count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
);
}
NativeRealPathCxxSpecJSI::NativeRealPathCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
: TurboModule("RealPath", jsInvoker) {
methodMap_["getPath"] = MethodMetadata {1, __hostFunction_NativeRealPathCxxSpecJSI_getPath};
}
} // namespace facebook::react