// Copyright (c) Facebook, Inc. and its affiliates. // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #pragma once #include #include #include #include #include #ifndef RN_EXPORT #define RN_EXPORT __attribute__((visibility("default"))) #endif namespace facebook { namespace react { namespace JSCNativeHooks { using Hook = JSValueRef(*)( JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef *exception); extern RN_EXPORT Hook loggingHook; extern RN_EXPORT Hook nowHook; typedef void(*ConfigurationHook)(JSGlobalContextRef); extern RN_EXPORT ConfigurationHook installPerfHooks; } } }