Skip to content
Permalink
Browse files

Move native version check to DEV only

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...
mmmulani authored and facebook-github-bot committed May 15, 2019
1 parent 04782ff commit 5bb22772452e49dbcfbf183f6ebeee4576e67947
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Core/InitializeCore.js
@@ -31,7 +31,6 @@ require('./setUpGlobals');
require('./polyfillES6Collections');
require('./setUpSystrace');
require('./setUpErrorHandling');
require('./checkNativeVersion');
require('./polyfillPromise');
require('./setUpRegeneratorRuntime');
require('./setUpTimers');
@@ -41,6 +40,7 @@ require('./setUpNavigator');
require('./setUpBatchedBridge');
require('./setUpSegmentFetcher');
if (__DEV__) {
require('./checkNativeVersion');
require('./setUpDeveloperTools');
}

0 comments on commit 5bb2277

Please sign in to comment.
You can’t perform that action at this time.