@hot-updater/react-native 0.26.0 → 0.26.1
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.
|
@@ -40,7 +40,15 @@ class ReactIntegrationManager(
|
|
|
40
40
|
|
|
41
41
|
reactHostDelegateField.isAccessible = true
|
|
42
42
|
val reactHostDelegate = reactHostDelegateField.get(reactHost)
|
|
43
|
-
|
|
43
|
+
// Try _jsBundleLoader first (Expo SDK 55+ ExpoReactHostDelegate uses a computed
|
|
44
|
+
// property with a private backing field), then fall back to jsBundleLoader
|
|
45
|
+
// (DefaultReactHostDelegate and older Expo versions).
|
|
46
|
+
val jsBundleLoaderField =
|
|
47
|
+
try {
|
|
48
|
+
reactHostDelegate::class.java.getDeclaredField("_jsBundleLoader")
|
|
49
|
+
} catch (e: NoSuchFieldException) {
|
|
50
|
+
reactHostDelegate::class.java.getDeclaredField("jsBundleLoader")
|
|
51
|
+
}
|
|
44
52
|
jsBundleLoaderField.isAccessible = true
|
|
45
53
|
jsBundleLoaderField.set(reactHostDelegate, getJSBundlerLoader(bundleURL))
|
|
46
54
|
} catch (e: Exception) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/react-native",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "React Native OTA solution for self-hosted",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -120,14 +120,14 @@
|
|
|
120
120
|
"react-native": "0.79.1",
|
|
121
121
|
"react-native-builder-bob": "^0.40.10",
|
|
122
122
|
"typescript": "^5.8.3",
|
|
123
|
-
"hot-updater": "0.26.
|
|
123
|
+
"hot-updater": "0.26.1"
|
|
124
124
|
},
|
|
125
125
|
"dependencies": {
|
|
126
126
|
"use-sync-external-store": "1.5.0",
|
|
127
|
-
"@hot-updater/cli-tools": "0.26.
|
|
128
|
-
"@hot-updater/js": "0.26.
|
|
129
|
-
"@hot-updater/core": "0.26.
|
|
130
|
-
"@hot-updater/
|
|
127
|
+
"@hot-updater/cli-tools": "0.26.1",
|
|
128
|
+
"@hot-updater/js": "0.26.1",
|
|
129
|
+
"@hot-updater/plugin-core": "0.26.1",
|
|
130
|
+
"@hot-updater/core": "0.26.1"
|
|
131
131
|
},
|
|
132
132
|
"scripts": {
|
|
133
133
|
"build": "bob build && tsc -p plugin/tsconfig.build.json",
|