forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Plugin support for (RCT)SampleTurboModule (facebook#44641)
Summary: Pull Request resolved: facebook#44641 Changelog: [iOS][Fixed] Enable Plugin support for (RCT)SampleTurboModule Reviewed By: javache Differential Revision: D57625901 fbshipit-source-id: fe57777970b3b342be77ea9bb4e8e3f95d66471a
- Loading branch information
1 parent
aca2cf0
commit b5e2967
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...ctCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleTurboModulePlugin.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* 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. | ||
* | ||
* @generated by an internal plugin build system | ||
*/ | ||
|
||
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER | ||
|
||
// FB Internal: Plugins.h is autogenerated by the build system. | ||
#import "Plugins.h" | ||
|
||
#else | ||
|
||
// OSS-compatibility layer | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#pragma GCC diagnostic push | ||
#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
// RCTTurboModuleManagerDelegate should call this to resolve module classes. | ||
Class _Nonnull RCTSampleTurboModuleCls(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#pragma GCC diagnostic pop | ||
|
||
#endif // RN_DISABLE_OSS_PLUGIN_HEADER |