Skip to content

Commit 5bb2277

Browse files
Mehdi Mulanifacebook-github-bot
Mehdi Mulani
authored andcommitted
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
1 parent 04782ff commit 5bb2277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Core/InitializeCore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ require('./setUpGlobals');
3131
require('./polyfillES6Collections');
3232
require('./setUpSystrace');
3333
require('./setUpErrorHandling');
34-
require('./checkNativeVersion');
3534
require('./polyfillPromise');
3635
require('./setUpRegeneratorRuntime');
3736
require('./setUpTimers');
@@ -41,6 +40,7 @@ require('./setUpNavigator');
4140
require('./setUpBatchedBridge');
4241
require('./setUpSegmentFetcher');
4342
if (__DEV__) {
43+
require('./checkNativeVersion');
4444
require('./setUpDeveloperTools');
4545
}
4646

0 commit comments

Comments
 (0)