28 lines
765 B
C++
28 lines
765 B
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <cxxreact/MessageQueueThread.h>
|
|
#include <hermes/hermes.h>
|
|
#include <jsi/jsi.h>
|
|
#include <react/config/ReactNativeConfig.h>
|
|
#include <react/runtime/JSRuntimeFactory.h>
|
|
|
|
namespace facebook::react {
|
|
|
|
class HermesInstance {
|
|
public:
|
|
static std::unique_ptr<JSRuntime> createJSRuntime(
|
|
std::shared_ptr<const ReactNativeConfig> reactNativeConfig,
|
|
std::shared_ptr<::hermes::vm::CrashManager> crashManager,
|
|
std::shared_ptr<MessageQueueThread> msgQueueThread,
|
|
bool allocInOldGenBeforeTTI) noexcept;
|
|
};
|
|
|
|
} // namespace facebook::react
|