mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7c93f5b001
Summary: This diff moves the code of TurboModule Core from ReactCommon/turbomodule to ReactCommon/react/nativemodule For iOS: Pod spec name stays as "ReactCommon/turbomodule/..." for now, only the source/header location is affected. The target will be renamed/restructured closer to TurboModule rollout. changelog: [internal] Internal Reviewed By: RSNara Differential Revision: D23362253 fbshipit-source-id: c2c8207578e50821c7573255d4319b9051b58a37
28 lines
695 B
Objective-C
28 lines
695 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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#import <React/RCTCxxModule.h>
|
|
#import <ReactCommon/RCTTurboModule.h>
|
|
|
|
/**
|
|
* Sample backward-compatible RCTCxxModule-based module.
|
|
* With jsi::HostObject, this class is no longer necessary, but the system supports it for
|
|
* backward compatibility.
|
|
*/
|
|
@interface RCTSampleTurboCxxModule_v1 : RCTCxxModule <RCTTurboModule>
|
|
|
|
@end
|
|
|
|
/**
|
|
* Second variant of a sample backward-compatible RCTCxxModule-based module.
|
|
*/
|
|
@interface RCTSampleTurboCxxModule_v2 : RCTCxxModule <RCTTurboModule>
|
|
|
|
@end
|