Gate ReactNativeVersionCheck by __DEV__

Reviewed By: hramos

Differential Revision: D6168567

fbshipit-source-id: 540dc11886d012f1d1a0f40211d408d3a56b40c5
This commit is contained in:
Chris Blappert 2017-10-30 14:54:17 -07:00 committed by Facebook Github Bot
parent 95bf367981
commit 8ef28eaa2d
1 changed files with 4 additions and 2 deletions

View File

@ -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: