Skip to content

[0.85] Fix stuck loading banner after a reload #1280

@cipolleschi

Description

@cipolleschi

Target Branch

0.85

Link to commit or PR to be picked

facebook/react-native@bec2933

Description

Fixes an issue on iOS where the "Loading from Metro..." banner can remain stuck on screen after a reload.

RCTInstance._loadScriptFromSource posts RCTInstanceDidLoadBundle, not RCTJavaScriptDidLoadNotification. The legacy notification is never posted, so the existing native hide path is dead.

Also, RCTDevLoadingView has no cleanup. Without hiding the window and clearing its reference, it remains alive and stuck on screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions