expo-template-bare-minimum 53.0.14 → 53.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,9 +8,6 @@ public class AppDelegate: ExpoAppDelegate {
8
8
  _ application: UIApplication,
9
9
  didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
10
10
  ) -> Bool {
11
- self.moduleName = "main"
12
- self.initialProps = [:]
13
-
14
11
  let delegate = ReactNativeDelegate()
15
12
  let factory = ExpoReactNativeFactory(delegate: delegate)
16
13
  delegate.dependencyProvider = RCTAppDependencyProvider()
@@ -18,6 +15,14 @@ public class AppDelegate: ExpoAppDelegate {
18
15
  reactNativeFactoryDelegate = delegate
19
16
  reactNativeFactory = factory
20
17
 
18
+ #if os(iOS) || os(tvOS)
19
+ window = UIWindow(frame: UIScreen.main.bounds)
20
+ reactNativeFactory?.startReactNative(
21
+ withModuleName: "main",
22
+ in: window,
23
+ launchOptions: launchOptions)
24
+ #endif
25
+
21
26
  return super.application(application, didFinishLaunchingWithOptions: launchOptions)
22
27
  }
23
28
 
@@ -43,4 +48,17 @@ public class AppDelegate: ExpoAppDelegate {
43
48
 
44
49
  class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
45
50
  // Extension point for config-plugins
51
+
52
+ override func sourceURL(for bridge: RCTBridge) -> URL? {
53
+ // needed to return the correct URL for expo-dev-client.
54
+ bridge.bundleURL ?? bundleURL()
55
+ }
56
+
57
+ override func bundleURL() -> URL? {
58
+ #if DEBUG
59
+ return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
60
+ #else
61
+ return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
62
+ #endif
63
+ }
46
64
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "expo-template-bare-minimum",
3
3
  "description": "This bare project template includes a minimal setup for using unimodules with React Native.",
4
4
  "license": "0BSD",
5
- "version": "53.0.14",
5
+ "version": "53.0.15",
6
6
  "main": "index.js",
7
7
  "scripts": {
8
8
  "start": "expo start --dev-client",
@@ -11,8 +11,8 @@
11
11
  "web": "expo start --web"
12
12
  },
13
13
  "dependencies": {
14
- "expo": "~53.0.0-preview.11",
15
- "expo-status-bar": "~2.2.1",
14
+ "expo": "~53.0.0-preview.12",
15
+ "expo-status-bar": "~2.2.2",
16
16
  "react": "19.0.0",
17
17
  "react-native": "0.79.1"
18
18
  },