Files
react-native/RNTester/RNTester/RNTesterTurboModuleProvider.h
T
Kevin Gozali 394c9a55be TM iOS: deprecate RN_TURBO_MODULE_ENABLED compiler flag
Summary:
It was added due to missing TM support in .xcodeproj, but since .xcodeproj has been deprecated, we don't need this flag anymore.

Relevant efforts:
https://github.com/facebook/react-native/pull/25619
https://github.com/facebook/react-native/pull/25393

Reviewed By: hramos

Differential Revision: D16231698

fbshipit-source-id: b3276d1fc64394624e5110f2ecd31acc2bb2d240
2019-07-12 22:44:20 -07:00

33 lines
1012 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.
*
*/
#import <ReactCommon/RCTTurboModule.h>
namespace facebook {
namespace react {
/**
* Provide the TurboModule class for the given name.
*/
Class RNTesterTurboModuleClassProvider(const char *name);
/**
* Provide a pure C++ instance of a TurboModule, specific to this app.
*/
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name, std::shared_ptr<JSCallInvoker> jsInvoker);
/**
* Provide an instance of a ObjCTurboModule, given the ObjC instance, specific to this app.
*/
std::shared_ptr<TurboModule> RNTesterTurboModuleProvider(const std::string &name,
id<RCTTurboModule> instance,
std::shared_ptr<JSCallInvoker> jsInvoker);
} // namespace react
} // namespace facebook