question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native 0.52 Android Delta Bundles

See original GitHub issue

In the latest version of react native, android by default tries to load a new ‘delta’ bundle. (See: https://github.com/facebook/react-native/blob/79e24ede40b2508aaa77b8ff3876d3dbf4cfe6d8/ReactAndroid/src/main/res/devsupport/xml/preferences.xml) This results in an error when using Haul because the app requests an index.delta file that is not being served.

The fix is simple though, open the dev menu, select the “Dev Settings” option, then uncheck the “Use JS Deltas” box. Close then re-open your app and it should request the normal javascript bundles as before.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
Stratecommented, May 4, 2018

@thymikee I am on 1.0.0-beta.14.

Fixed with modifying onCreate method in MainApplication.java:

 @Override
    public void onCreate() {
        super.onCreate();
        DevInternalSettings settings = (DevInternalSettings) getReactGateway().getReactInstanceManager().getDevSupportManager().getDevSettings();
        if (settings != null) {
            settings.setBundleDeltasEnabled(false);
        }      
    }
6reactions
tkowcommented, Mar 29, 2018

I’m sorry to reopen issue. I want to ask you for detox integration. I cannot disable delta bundles running

detox test --configuration android.emu.debug 

command and an error emitted shows.

2018-03-29 10 52 11

Even if we unchecked using DeltaBundles’ check box and restart running test, it doesn’t work and the same error shows.

Can it be disable with configuration file or from command line like additional options? or I should wait for next release ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install react-native-vector-icons? - Stack Overflow
I finally found the solution. This happens only in the react-native version 0.52.0 The file it is trying to find does in fact...
Read more >
haul - npm
Haul is a new command line tools for React Native. ... Currently we don't support delta bundles (metro feature) (Android).
Read more >
your app bundle targets the following unrecognized languages
I have created signed android app bundle and while uploading it on playstore. I am getting the following error: Your app bundle targets...
Read more >
Showing full stacktraces - Bugsnag docs
The source maps used for the release variant can be generated via the react-native bundle (or react-native ram-bundle ) command. iOS. Android. Copy....
Read more >
A command line tool for developing React Native apps - Morioh
Delta Bundles (RN 0.52+) have minimal support; Existing react-native ... Cross-platform development: You can develop both Android and iOS apps with it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found