/**
 * 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 "RNSplashViewSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeSplashViewCxxSpecJSI_showSplash(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeSplashViewCxxSpecJSI *>(&turboModule)->showSplash(
    rt,
    count <= 0 || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asObject(rt))
  );
  return jsi::Value::undefined();
}
static jsi::Value __hostFunction_NativeSplashViewCxxSpecJSI_hideSplash(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeSplashViewCxxSpecJSI *>(&turboModule)->hideSplash(
    rt
  );
  return jsi::Value::undefined();
}

NativeSplashViewCxxSpecJSI::NativeSplashViewCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("SplashView", jsInvoker) {
  methodMap_["showSplash"] = MethodMetadata {1, __hostFunction_NativeSplashViewCxxSpecJSI_showSplash};
  methodMap_["hideSplash"] = MethodMetadata {0, __hostFunction_NativeSplashViewCxxSpecJSI_hideSplash};
}


} // namespace facebook::react
