Skip to content

[0.78] Custom load js bundle source in bridge mode #809

@tux2nicolae

Description

@tux2nicolae

Target Branch(es)

0.78

Link to commit or PR to be picked

facebook/react-native#48845

Description

We have a custom implementation for loading js bundle using for old architecture and new architecture

// old architecture
- (void)loadSourceForBridge:(RCTBridge *)bridge
                 onProgress:(RCTSourceLoadProgressBlock)onProgress
                 onComplete:(RCTSourceLoadBlock)loadCallback 
{
}

// new architecture
- (void)loadBundleAtURL:(NSURL *)sourceURL
             onProgress:(RCTSourceLoadProgressBlock)onProgress
             onComplete:(RCTSourceLoadBlock)loadCallback
{
}

On the new architecture loadBundleAtURL is correctly called, but on the old architecture the loadSourceForBridge is never called.

We found that this issue was introduced here:

#177
facebook/react-native#43656

And later one fixed here:
facebook/react-native#48845


Our release is blocked by this issue, and would appreciate if you could pick this issue for the next version

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions