Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/bare-expo/ios/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Expo
internal import Expo
import Network
import React
import ReactAppDependencyProvider

@main
public class AppDelegate: ExpoAppDelegate {
class AppDelegate: ExpoAppDelegate {
var window: UIWindow?

var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
Expand Down
3 changes: 2 additions & 1 deletion apps/bare-expo/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ PODS:
- ExpoModulesCore
- ExpoGL (55.0.3):
- ExpoModulesCore
- ExpoModulesJSI
- ReactCommon/turbomodule/core
- ExpoGlassEffect (55.0.3):
- ExpoModulesCore
Expand Down Expand Up @@ -3806,7 +3807,7 @@ SPEC CHECKSUMS:
ExpoDomWebView: 2cb9e9bed46799fa8f36b6284ce7799f1dbff297
ExpoFileSystem: fbc1b6c573adea694db76bcfdec603952d96b0d5
ExpoFont: 4e2967170d6ee7316c5efd62dd06aabd7b4593d2
ExpoGL: 995034ac1bf272589a7f0670dddf6c646c3842af
ExpoGL: 5c4ead68e3ccad2ff5d71a9afe6b332af5da6233
ExpoGlassEffect: 3f4ba89f21a3077d598777608808c5bde0d7de43
ExpoHaptics: f919ee984bb7617ddb9819856dd662b2f4248f71
ExpoImage: eb2443489a4e380def23857653e170054ecec49c
Expand Down
4 changes: 2 additions & 2 deletions apps/bare-expo/macos/BareExpo-macOS/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Expo
internal import Expo
import React
import ReactAppDependencyProvider

@main
public class AppDelegate: ExpoAppDelegate {
class AppDelegate: ExpoAppDelegate {
var window: UIWindow?

var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
import Expo
internal import Expo
import React
import ReactAppDependencyProvider

class ExpoViewController: UIViewController {
private var moduleName: String
private var initialProperties: [String: Any]?

var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
var reactNativeFactory: RCTReactNativeFactory?

@objc public init(moduleName: String, initialProperties: [String: Any]? = nil) {
self.moduleName = moduleName
self.initialProperties = initialProperties
super.init(nibName: nil, bundle: nil)
}

required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

override func viewDidLoad() {
super.viewDidLoad()

let delegate = ReactNativeDelegate()
let factory = ExpoReactNativeFactory(delegate: delegate)

delegate.dependencyProvider = RCTAppDependencyProvider()

reactNativeDelegate = delegate
reactNativeFactory = factory

view = factory.rootViewFactory.view(withModuleName: moduleName)
delegate.setRootView(view, toRootViewController: self)
}
}

class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
// Extension point for config-plugins

override func sourceURL(for bridge: RCTBridge) -> URL? {
// needed to return the correct URL for expo-dev-client.
bridge.bundleURL ?? bundleURL()
}

override func bundleURL() -> URL? {
#if DEBUG
return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
Expand Down
1 change: 0 additions & 1 deletion apps/minimal-tester/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require File.join(File.dirname(`node --print "require.resolve('expo-brownfield/package.json')"`), "plugin/src/ios/scripts/reorder_build_phases.rb")
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")

Expand Down
Loading
Loading