From 6d3ccca9d0095b1c8e24554ec1675f2f0098062e Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 18 Nov 2024 18:26:12 +0000 Subject: [PATCH] [iOS] Pass the RCTAppDependencyProvider to the RCTAppDelegate (#83) --- template/ios/HelloWorld/AppDelegate.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/template/ios/HelloWorld/AppDelegate.swift b/template/ios/HelloWorld/AppDelegate.swift index c467b3a..c6336ed 100644 --- a/template/ios/HelloWorld/AppDelegate.swift +++ b/template/ios/HelloWorld/AppDelegate.swift @@ -1,23 +1,25 @@ import UIKit import React import React_RCTAppDelegate +import ReactCodegen @main class AppDelegate: RCTAppDelegate { override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { self.moduleName = "HelloWorld" - + self.dependencyProvider = RCTAppDependencyProvider() + // You can add your custom initial props in the dictionary below. // They will be passed down to the ViewController used by React Native. self.initialProps = [:] - + return super.application(application, didFinishLaunchingWithOptions: launchOptions) } - + override func sourceURL(for bridge: RCTBridge) -> URL? { self.bundleURL() } - + override func bundleURL() -> URL? { #if DEBUG RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")