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.
- Loading branch information
Showing
7 changed files
with
96 additions
and
5 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
32 changes: 32 additions & 0 deletions
32
...Common/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleBindingsInstaller.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,32 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#ifdef __cplusplus | ||
#import <ReactCommon/TurboModule.h> | ||
#endif | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** | ||
* This class is a holder for a RCTTurboModule to get the facebook::react::TurboModule::BindingsInstaller. | ||
*/ | ||
@interface RCTTurboModuleBindingsInstaller : NSObject | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
#ifdef __cplusplus | ||
- (instancetype)initWithBindingsInstaller:(facebook::react::TurboModule::BindingsInstaller)bindingsInstaller | ||
NS_DESIGNATED_INITIALIZER; | ||
|
||
- (facebook::react::TurboModule::BindingsInstaller)get; | ||
#endif | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
28 changes: 28 additions & 0 deletions
28
...ommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleBindingsInstaller.mm
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,28 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
#import "RCTTurboModuleBindingsInstaller.h" | ||
|
||
@implementation RCTTurboModuleBindingsInstaller { | ||
facebook::react::TurboModule::BindingsInstaller _bindingsInstaller; | ||
} | ||
|
||
- (instancetype)initWithBindingsInstaller:(facebook::react::TurboModule::BindingsInstaller)bindingsInstaller | ||
{ | ||
if (self = [super init]) { | ||
_bindingsInstaller = bindingsInstaller; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (facebook::react::TurboModule::BindingsInstaller)get | ||
{ | ||
return _bindingsInstaller; | ||
} | ||
|
||
@end |
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