Skip to content

Commit 475921c

Browse files
committed
💫 Update: Ex - AppDelegate
1 parent 0dfabef commit 475921c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

example/ios/IosContextMenuExample/AppDelegate.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
#import "AppDelegate.h"
22

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

57
@implementation AppDelegate
68

79
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
810
{
911
self.moduleName = @"IosContextMenuExample";
12+
self.dependencyProvider = [RCTAppDependencyProvider new];
13+
1014
// You can add your custom initial props in the dictionary below.
1115
// They will be passed down to the ViewController used by React Native.
1216
self.initialProps = @{};
13-
17+
1418
return [super application:application didFinishLaunchingWithOptions:launchOptions];
1519
}
1620

@@ -27,5 +31,4 @@ - (NSURL *)bundleURL
2731
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
2832
#endif
2933
}
30-
3134
@end

0 commit comments

Comments
 (0)