forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add codegen step to generate Custom RCTURLRequest Handlers (facebook#…
…42923) Summary: This change add the codegen step to generate the list of classes that can be used as custom URLHandlers ## Changelog [iOS][Added] - Add the codegen step to generate custom URLHandlers Differential Revision: D53441411
- Loading branch information
1 parent
0ecd3a9
commit f6f10e8
Showing
4 changed files
with
51 additions
and
1 deletion.
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
19 changes: 19 additions & 0 deletions
19
packages/react-native/scripts/codegen/templates/RCTURLRequestHandlerProviderMM.template
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,19 @@ | ||
/* | ||
* 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 "RCTURLRequestHandlerProvider.h" | ||
|
||
@implementation RCTURLRequestHandlerProvider: NSObject | ||
|
||
+ (NSArray<NSString *> *)customURLRequestHandlerClassNames | ||
{ | ||
return @[ | ||
{classList} | ||
]; | ||
} | ||
|
||
@end |