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 коммит произвёл Facebook Github Bot
Родитель 95bf367981
Коммит 8ef28eaa2d
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

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