Skip to content

Commit b98f5d5

Browse files
authored
Merge pull request #7 from girish54321/ios-new-fix
Ios new fix
2 parents 51b361b + 57803c7 commit b98f5d5

File tree

8 files changed

+1712
-1567
lines changed

8 files changed

+1712
-1567
lines changed

ios/AppDelegate.swift

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// AppDelegate.swift
3+
// starterApp
4+
//
5+
// Created by Girish Parate on 08/02/25.
6+
//
7+
8+
import UIKit
9+
import React
10+
import React_RCTAppDelegate
11+
import ReactAppDependencyProvider
12+
13+
@main
14+
class AppDelegate: RCTAppDelegate {
15+
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
16+
self.moduleName = "starterApp"
17+
self.dependencyProvider = RCTAppDependencyProvider()
18+
19+
// You can add your custom initial props in the dictionary below.
20+
// They will be passed down to the ViewController used by React Native.
21+
self.initialProps = [:]
22+
23+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
24+
}
25+
26+
override func sourceURL(for bridge: RCTBridge) -> URL? {
27+
self.bundleURL()
28+
}
29+
30+
override func bundleURL() -> URL? {
31+
#if DEBUG
32+
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
33+
#else
34+
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
35+
#endif
36+
}
37+
}

0 commit comments

Comments
 (0)