react-native-get-pixel_edit/node_modules/react-native/ReactCommon/react/runtime/JSEngineInstance.h
2025-07-09 11:41:52 +09:00

28 lines
656 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 <ReactCommon/RuntimeExecutor.h>
#include <cxxreact/MessageQueueThread.h>
#include <jsi/jsi.h>
namespace facebook::react {
/**
* Interface for a class that creates and owns an instance of a JS VM
*/
class JSEngineInstance {
public:
virtual std::unique_ptr<jsi::Runtime> createJSRuntime(
std::shared_ptr<MessageQueueThread> msgQueueThread) noexcept = 0;
virtual ~JSEngineInstance() = default;
};
} // namespace facebook::react