2017-07-19 13:37:52 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2017-07-19 13:37:52 -07:00
|
|
|
*
|
2018-02-16 18:24:55 -08:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-07-19 13:37:52 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#import <React/RCTBridgeDelegate.h>
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
class JSExecutorFactory;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is a separate class so non-C++ implementations don't need to
|
|
|
|
// take a C++ dependency.
|
|
|
|
|
|
|
|
@protocol RCTCxxBridgeDelegate <RCTBridgeDelegate>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* In the RCTCxxBridge, if this method is implemented, return a
|
|
|
|
* ExecutorFactory instance which can be used to create the executor.
|
2018-10-18 00:47:05 -07:00
|
|
|
* If not implemented, or returns an empty pointer, JSIExecutorFactory
|
|
|
|
* will be used with a JSCRuntime.
|
2017-07-19 13:37:52 -07:00
|
|
|
*/
|
|
|
|
- (std::unique_ptr<facebook::react::JSExecutorFactory>)jsExecutorFactoryForBridge:(RCTBridge *)bridge;
|
|
|
|
|
|
|
|
@end
|