Skip to content

Commit

Permalink
Move native version check to DEV only
Browse files Browse the repository at this point in the history
Summary: This check isn't needed in prod as the bundle is served with the app. In dev mode it's possible to have native and JS out of sync.

Reviewed By: yungsters

Differential Revision: D15268485

fbshipit-source-id: 9aeeb6cf5ca91baa90b85e18c848c3b10d85b0f7
  • Loading branch information
Mehdi Mulani authored and facebook-github-bot committed May 15, 2019
1 parent 04782ff commit 5bb2277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Core/InitializeCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ require('./setUpGlobals');
require('./polyfillES6Collections');
require('./setUpSystrace');
require('./setUpErrorHandling');
require('./checkNativeVersion');
require('./polyfillPromise');
require('./setUpRegeneratorRuntime');
require('./setUpTimers');
Expand All @@ -41,6 +40,7 @@ require('./setUpNavigator');
require('./setUpBatchedBridge');
require('./setUpSegmentFetcher');
if (__DEV__) {
require('./checkNativeVersion');
require('./setUpDeveloperTools');
}

Expand Down

0 comments on commit 5bb2277

Please sign in to comment.