Skip to content

Conversation

@namrog84
Copy link
Contributor

@namrog84 namrog84 commented Mar 9, 2020

react-native bundle --dev currently defaults to true
You can see for yourself by running npx react-native bundle --help

With this being set to true, this is what causes yellow box warnings appearing in release builds. Or at least it did at one point. Not sure what other effects it has.

in Facebook's ReactNative android example build.
As shown here
https://github.com/facebook/react-native/blob/1fb815ed4314c1396999e64354ca0b5d4ed83663/react.gradle#L156

This PR lets you control it as well via a flag. I am adding it so that all release builds will set it appropriately. But still allow dev debug bundles to work properly.

See more info at issue #4276

Microsoft Reviewers: Open in CodeFlow

@namrog84 namrog84 requested a review from a team as a code owner March 9, 2020 22:34
@ghost ghost added the vnext label Mar 9, 2020
@namrog84
Copy link
Contributor Author

Since it looks things got reworked into bundle-cpp or something to the package.json, I don't know how to pass this along properly as it's just not my area of knowledge and as the fix is already in our own project.

I am just going to abandon this PR, and leave the issue #4276 open for whoever knows more about this this properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants