
/**
 * 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: GenerateModuleJniCpp.js
 */

#include "RNGetDeviceLocaleSpec.h"

namespace facebook::react {

static facebook::jsi::Value __hostFunction_NativeGetDeviceLocaleSpecJSI_getDeviceLocale(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
  static jmethodID cachedMethodId = nullptr;
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getDeviceLocale", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
}

NativeGetDeviceLocaleSpecJSI::NativeGetDeviceLocaleSpecJSI(const JavaTurboModule::InitParams &params)
  : JavaTurboModule(params) {
  methodMap_["getDeviceLocale"] = MethodMetadata {0, __hostFunction_NativeGetDeviceLocaleSpecJSI_getDeviceLocale};
}

std::shared_ptr<TurboModule> RNGetDeviceLocaleSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
  if (moduleName == "GetDeviceLocale") {
    return std::make_shared<NativeGetDeviceLocaleSpecJSI>(params);
  }
  return nullptr;
}

} // namespace facebook::react
