Skip to content

Commit

Permalink
delete RCTJSScriptLoaderModule (facebook#37284)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#37284

Changelog: [iOS][Removed]

in the past, we had this protocol so we could decorate the `RCTDevSplitBundleLoader`, which was removed by motiz88. now that doesn't exist anymore, we should delete this protocol. i did a quick grep on github and this protocol was only used by `RCTDevSplitBundleLoader`, so i don't think this will be a major breaking change

Reviewed By: christophpurrer

Differential Revision: D45591882

fbshipit-source-id: 79bb8b11af7d912b54c0a19572100f76f0938a47
  • Loading branch information
philIip authored and facebook-github-bot committed May 5, 2023
1 parent 9bc1996 commit 6464522
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
22 changes: 0 additions & 22 deletions packages/react-native/React/Base/RCTJSScriptLoaderModule.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,6 @@ - (Class)getModuleClassFromName:(const char *)name
- (void)_attachBridgelessAPIsToModule:(id<RCTTurboModule>)module FB_OBJC_DIRECT
{
__weak RCTInstance *weakInstance = self;
if ([module respondsToSelector:@selector(setLoadScript:)]) {
((id<RCTJSScriptLoaderModule>)module).loadScript = ^(RCTSource *source) {
[weakInstance loadScriptFromSource:(source)];
};
}

if ([module respondsToSelector:@selector(setDispatchToJSThread:)]) {
((id<RCTJSDispatcherModule>)module).dispatchToJSThread = ^(dispatch_block_t block) {
__strong __typeof(self) strongSelf = weakInstance;
Expand Down

0 comments on commit 6464522

Please sign in to comment.