From 5bb22772452e49dbcfbf183f6ebeee4576e67947 Mon Sep 17 00:00:00 2001 From: Mehdi Mulani Date: Tue, 14 May 2019 17:42:34 -0700 Subject: [PATCH] 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 --- Libraries/Core/InitializeCore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index d4cb2268645..263001547b6 100644 --- a/Libraries/Core/InitializeCore.js +++ b/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'); }