Files
react-native-svg/apps/tests-example/ios/TestsExample/AppDelegate.swift
Jakub Grzywacz de6b4d0d17 chore: bump TestsExample to react-native@0.77.0-rc.1 (#2556)
# Summary

Bump TestsExample to `react-native@0.77.0-rc.1` to track compatibility
with the latest version

## Test Plan

`TestsExample` should compile.

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| iOS     |          |
| Android |          |
2024-12-09 16:33:53 +01:00

31 lines
952 B
Swift

import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
@main
class AppDelegate: RCTAppDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
self.moduleName = "TestsExample"
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")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}