From 8ef28eaa2d9f34e55278f2e844ebe823f83b6447 Mon Sep 17 00:00:00 2001 From: Chris Blappert Date: Mon, 30 Oct 2017 14:54:17 -0700 Subject: [PATCH] Gate ReactNativeVersionCheck by __DEV__ Reviewed By: hramos Differential Revision: D6168567 fbshipit-source-id: 540dc11886d012f1d1a0f40211d408d3a56b40c5 --- Libraries/Core/InitializeCore.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/InitializeCore.js b/Libraries/Core/InitializeCore.js index 90e9360cb..ecf661759 100644 --- a/Libraries/Core/InitializeCore.js +++ b/Libraries/Core/InitializeCore.js @@ -126,8 +126,10 @@ if (!global.__fbDisableExceptionsManager) { } // Check for compatibility between the JS and native code -const ReactNativeVersionCheck = require('ReactNativeVersionCheck'); -ReactNativeVersionCheck.checkVersions(); +if (__DEV__) { + const ReactNativeVersionCheck = require('ReactNativeVersionCheck'); + ReactNativeVersionCheck.checkVersions(); +} // Set up Promise // The native Promise implementation throws the following error: