Permalink
Browse files

Gate ReactNativeVersionCheck by __DEV__

Reviewed By: hramos

Differential Revision: D6168567

fbshipit-source-id: 540dc11886d012f1d1a0f40211d408d3a56b40c5
  • Loading branch information...
cblappert authored and facebook-github-bot committed Oct 30, 2017
1 parent 95bf367 commit 8ef28eaa2d9f34e55278f2e844ebe823f83b6447
Showing with 4 additions and 2 deletions.
  1. +4 −2 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:

0 comments on commit 8ef28ea

Please sign in to comment.