Skip to content

Commit b51a99c

Browse files
hramosfacebook-github-bot
authored andcommitted
rn-demo-app: Implement getModuleInstanceFromClass:
Summary: While not strictly necessary for rn-demo-app at this point, we do need to provide the `getModuleInstanceFromClass:` implementation to simplify the TurboModule migration process later on. Also, removed some issues in the Xcode project that must have been introduced during a recent rebase (duplicate Embed Pods build phases). Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D30618992 fbshipit-source-id: a9b496cfa0cd34fca6389ddf829613aa13ea409d
1 parent 7dc2211 commit b51a99c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/rn-tester/RNTester/AppDelegate.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ - (Class)getModuleClassFromName:(const char *)name
206206

207207
- (id<RCTTurboModule>)getModuleInstanceFromClass:(Class)moduleClass
208208
{
209+
// Set up the default RCTImageLoader and RCTNetworking modules.
209210
if (moduleClass == RCTImageLoader.class) {
210211
return [[moduleClass alloc] initWithRedirectDelegate:nil
211212
loadersProvider:^NSArray<id<RCTImageURLLoader>> *(RCTModuleRegistry * moduleRegistry) {

0 commit comments

Comments
 (0)