Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

[RN 0.29.0] Rationalize RCTBundleURLProvider #393

@lostintangent

Description

@lostintangent

As of React Native 0.29, the generated AppDelegate.m file includes the following code to determine the JS bundle's location:

NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

The nice thing about this new solution, is that it handles using the packager in debug-mode and the bundled JS file in release mode (kind of like how Android already works). Therefore, devs don't need to use an #if DEBUG statement to toggle between the two.

We should think about how we expect devs to use CodePush in conjunction with this new API and/or if we need to expose a new API that effectively uses the RCTBundleURLProvider under the hood (e.g. [CodePush jsBundleURLForBundleRoot]).

I validated that CodePush works great on iOS in RN 0.29, but we need to update our docs and potentially our API in order to fully embrace the new AppDelegate.m code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions