MCPcopy Create free account
hub / github.com/borndotcom/react-native-godot / createJSCallable

Function createJSCallable

common/NativeGodotModule.cpp:241–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239};
240
241static godot::Callable createJSCallable(std::shared_ptr<RNWorklet::JsiWorkletContext> workletContext, jsi::Runtime &rt, jsi::Function func) {
242 return godot::Callable(memnew(JavascriptCallable(workletContext, rt, func)));
243}
244
245class GodotHostObject : public jsi::HostObject {
246 std::shared_ptr<RNWorklet::JsiWorkletContext> _workletContext;

Callers 1

Calls 1

JavascriptCallableClass · 0.85

Tested by

no test coverage detected