diff --git a/RNTester/RNTester/AppDelegate.mm b/RNTester/RNTester/AppDelegate.mm index 89aba9d639d176..471ec564736be9 100644 --- a/RNTester/RNTester/AppDelegate.mm +++ b/RNTester/RNTester/AppDelegate.mm @@ -13,6 +13,9 @@ #import #import #import +#import +#import +#import #import #import @@ -142,6 +145,13 @@ - (Class)getModuleClassFromName:(const char *)name - (id)getModuleInstanceFromClass:(Class)moduleClass { + if (moduleClass == RCTImageLoader.class) { + return [[moduleClass alloc] initWithRedirectDelegate:nil loadersProvider:^NSArray> *{ + return @[[RCTLocalAssetImageLoader new]]; + } decodersProvider:^NSArray> *{ + return @[[RCTGIFImageDecoder new]]; + }]; + } // No custom initializer here. return [moduleClass new]; }