expo-template-bare-minimum 53.0.13 → 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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
575f3c2aa0aad49972df25f768c8710ee4e850b04feef86450f4dbfa7f29655b
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
12ee7b9714a834f217075ac1a3b8bf449f10e8106cf744308de505ab2ab7b3b
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
1
|
import Expo
|
|
2
|
+
import React
|
|
3
|
+
import ReactAppDependencyProvider
|
|
3
4
|
|
|
4
5
|
@UIApplicationMain
|
|
5
6
|
public class AppDelegate: ExpoAppDelegate {
|
|
@@ -7,18 +8,22 @@ public class AppDelegate: ExpoAppDelegate {
|
|
|
7
8
|
_ application: UIApplication,
|
|
8
9
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
|
|
9
10
|
) -> Bool {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
let delegate = ReactNativeDelegate()
|
|
12
|
+
let factory = ExpoReactNativeFactory(delegate: delegate)
|
|
13
|
+
delegate.dependencyProvider = RCTAppDependencyProvider()
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
reactNativeFactoryDelegate = delegate
|
|
16
|
+
reactNativeFactory = factory
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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)
|
|
21
24
|
#endif
|
|
25
|
+
|
|
26
|
+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
// Linking API
|
|
@@ -40,3 +45,20 @@ public class AppDelegate: ExpoAppDelegate {
|
|
|
40
45
|
return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
|
|
41
46
|
}
|
|
42
47
|
}
|
|
48
|
+
|
|
49
|
+
class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
|
|
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
|
+
}
|
|
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.
|
|
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.
|
|
15
|
-
"expo-status-bar": "~2.2.
|
|
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
|
},
|