PHP 7.4.33
Preview: RCTJSIExecutorRuntimeInstaller.mm Size: 918 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/react-native/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.mm
/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#include "RCTJSIExecutorRuntimeInstaller.h"

#import <React/RCTLog.h>
#include <chrono>

namespace facebook::react {

JSIExecutor::RuntimeInstaller RCTJSIExecutorRuntimeInstaller(JSIExecutor::RuntimeInstaller runtimeInstallerToWrap)
{
  return [runtimeInstaller = runtimeInstallerToWrap](jsi::Runtime &runtime) {
    Logger iosLoggingBinder = [](const std::string &message, unsigned int logLevel) {
      _RCTLogJavaScriptInternal(static_cast<RCTLogLevel>(logLevel), [NSString stringWithUTF8String:message.c_str()]);
    };
    bindNativeLogger(runtime, iosLoggingBinder);

    // Wrap over the original runtimeInstaller
    if (runtimeInstaller) {
      runtimeInstaller(runtime);
    }
  };
}

} // namespace facebook::react

Directory Contents

Dirs: 0 × Files: 12
Name Size Perms Modified Actions
725 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
652 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
771 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
379 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
56.26 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
839 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
565 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
918 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
1.09 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
2.89 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
822 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
4.82 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).