A framework for building native applications using React
Fix: loading bundle using `debug_http_host` preferences (#54687)
Summary:
In https://github.com/facebook/react-native/issues/54139 I have removed checking shared preferences for `debug_http_host`. The diff reverts this removal because it is used for changing the bundle source before the app starts.
## Changelog:
[ANDROID][FIXED] - revert removal of checking shared preferences for `debug_http_host`.
Pull Request resolved: https://github.com/facebook/react-native/pull/54687
Test Plan:
I have run the `rn-tester` app and swapped a default prefs file on Android emulator located in: `/data/data/com.facebook.react.uiapp/shared_prefs/com.facebook.react.uiapp_preferences.xml` with one that had updated port in `debug_http_host` setting to `8082`:
```xml
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<boolean name="fps_debug" value="true" />
<string name="debug_http_host">10.0.2.2:8082</string>
<boolean name="inspector_debug" value="true" />
</map>
```
Then, I have run the app and checked if the bundle is loaded from the Metro instance invoked using `yarn start --port 8082`.
Reviewed By: cortinico
Differential Revision: D87869540
Pulled By: coado
fbshipit-source-id: 9a76990b097ad7ff24cbbc5202ca935053de23e5 D
Dawid Malecki committed
2ac54881f3967346faafa4e5a6bc3b9a68c29e46
Parent: f0cbc93
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 11/26/2025, 12:04:25 PM