Description
Description
------------reload---------
Activity activity = getCurrentActivity();
ReactApplication app = (ReactApplication) activity.getApplication();
ReactHost reactHost = app.getReactHost();
if (reactHost != null) {
reactHost.reload("Manual reload from new arch");
}
--------------getJSBundleFile----------------
override fun getJSBundleFile(): String? {
return JsBundleHelper.getJSBundleFile(this.application)
}
When calling reload, the js can trigger reloading again, and JsBundleHelper.getJSBundleFile can also print the latest patch address normally. However, the reloaded js is still the old version. But when the app is killed and restarted, the new patch can take effect normally. Why?
Steps to reproduce
/
React Native Version
0.78.0
Affected Platforms
Build - Windows
Areas
TurboModule - The New Native Module System, JSI - Javascript Interface, Bridgeless - The New Initialization Flow, Codegen, Fabric - The New Renderer
Output of npx @react-native-community/cli info
System:
OS: Windows 11 10.0.26100
CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
Memory: 8.52 GB / 31.94 GB
Binaries:
Node:
version: 20.18.0
path: ~\.nvmd\versions\20.18.0\node.EXE
Yarn:
version: 1.22.22
path: ~\.nvmd\versions\20.18.0\yarn.CMD
npm:
version: 10.8.2
path: ~\.nvmd\versions\20.18.0\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "30"
- "31"
- "32"
- "33"
- "34"
- "35"
Build Tools:
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
- 35.0.1
System Images:
- android-35 | Google Play Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-243.22562.218.2431.13114758
Visual Studio: Not Found
Languages:
Java: 17.0.14
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 15.1.3
wanted: 15.1.3
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
/
MANDATORY Reproducer
/
Screenshots and Videos
No response