Skip to content

Commit ddfd0eb

Browse files
authored
fix: add RCTAppDependencyProvider to template (#2559)
1 parent 8819d6c commit ddfd0eb

File tree

1 file changed

+3
-1
lines changed
  • packages/react-native/local-cli/generator-macos/templates/macos/HelloWorld-macOS

1 file changed

+3
-1
lines changed

packages/react-native/local-cli/generator-macos/templates/macos/HelloWorld-macOS/AppDelegate.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#import "AppDelegate.h"
22

33
#import <React/RCTBundleURLProvider.h>
4+
#import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
45

56
@implementation AppDelegate
67

@@ -10,7 +11,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification
1011
// You can add your custom initial props in the dictionary below.
1112
// They will be passed down to the ViewController used by React Native.
1213
self.initialProps = @{};
13-
14+
self.dependencyProvider = [RCTAppDependencyProvider new];
15+
1416
return [super applicationDidFinishLaunching:notification];
1517
}
1618

0 commit comments

Comments
 (0)