26 lines
679 B
C++
26 lines
679 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>
|
|
|
|
namespace facebook::react {
|
|
|
|
class HermesInstance {
|
|
public:
|
|
static std::unique_ptr<jsi::Runtime> createJSRuntime(
|
|
std::shared_ptr<const ReactNativeConfig> reactNativeConfig,
|
|
std::shared_ptr<::hermes::vm::CrashManager> cm,
|
|
std::shared_ptr<MessageQueueThread> msgQueueThread) noexcept;
|
|
};
|
|
|
|
} // namespace facebook::react
|