mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Buckle up, this enables clang-format prettifier for all files in React Native opensource repo. Changelog: [Internal] Clang-format codemod. Reviewed By: mdvacca Differential Revision: D20331210 fbshipit-source-id: 8da0f94700be0c35bfd399e0c48f1706de04f5b1
34 lines
845 B
Objective-C
34 lines
845 B
Objective-C
/*
|
|
* 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.
|
|
*/
|
|
|
|
#include <functional>
|
|
#include <memory>
|
|
|
|
#import <React/RCTDefines.h>
|
|
#import <React/RCTJavaScriptExecutor.h>
|
|
#import <cxxreact/JSExecutor.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class RCTObjcExecutorFactory : public JSExecutorFactory {
|
|
public:
|
|
RCTObjcExecutorFactory(
|
|
id<RCTJavaScriptExecutor> jse,
|
|
RCTJavaScriptCompleteBlock errorBlock);
|
|
std::unique_ptr<JSExecutor> createJSExecutor(
|
|
std::shared_ptr<ExecutorDelegate> delegate,
|
|
std::shared_ptr<MessageQueueThread> jsQueue) override;
|
|
|
|
private:
|
|
id<RCTJavaScriptExecutor> m_jse;
|
|
RCTJavaScriptCompleteBlock m_errorBlock;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|