-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make PushNotificationManager TurboModule-compatible
Summary: Changelog: [iOS][Added] - Make PushNotificationManager TurboModule-compatible Reviewed By: PeteTheHeat Differential Revision: D18375067 fbshipit-source-id: 256e6a42bf0055253f04df45e67f538f7564a966
- Loading branch information
1 parent
777e603
commit 861c860
Showing
8 changed files
with
254 additions
and
45 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
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
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
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
40 changes: 40 additions & 0 deletions
40
Libraries/PushNotificationIOS/RCTPushNotificationPlugins.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,40 @@ | ||
/** | ||
* 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. | ||
* | ||
* @generated by an internal plugin build system | ||
*/ | ||
|
||
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER | ||
|
||
// FB Internal: FBRCTPushNotificationPlugins.h is autogenerated by the build system. | ||
#import <React/FBRCTPushNotificationPlugins.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 RCTPushNotificationClassProvider(const char *name); | ||
|
||
// Lookup functions | ||
Class RCTPushNotificationManagerCls(void) __attribute__((used)); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#pragma GCC diagnostic pop | ||
|
||
#endif // RN_DISABLE_OSS_PLUGIN_HEADER |
Oops, something went wrong.