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

Method installTurboModule

common/NativeGodotModule.cpp:898–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896 NativeGodotModuleCxxSpec(std::move(jsInvoker)) {}
897
898bool NativeGodotModule::installTurboModule(jsi::Runtime &rt) {
899 jsi::Value godotModule = createNativeGodotModule(rt, jsInvoker_);
900
901 rt.global().setProperty(rt, NATIVE_GODOT_MODULE_PROPERTY, godotModule);
902 if (!rt.global().getProperty(rt, NATIVE_GODOT_MODULE_PROPERTY).isObject()) {
903 LOGE("Could not set NativeGodotModule property.");
904 return false;
905 }
906 return true;
907}
908
909}; //namespace facebook::react

Callers

nothing calls this directly

Calls 1

createNativeGodotModuleFunction · 0.85

Tested by

no test coverage detected