mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-06-07 04:15:57 +00:00
chore(example): update react-native version
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// AppDelegate.swift
|
||||
// VideoExample
|
||||
//
|
||||
// Created by Krzysztof Moch on 31/01/2025.
|
||||
//
|
||||
|
||||
|
||||
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 = "VideoExample"
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user