mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Gate ReactNativeVersionCheck by __DEV__
Reviewed By: hramos Differential Revision: D6168567 fbshipit-source-id: 540dc11886d012f1d1a0f40211d408d3a56b40c5
This commit is contained in:
1 parent
95bf367981
commit
8ef28eaa2d
1 file changed
+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:
|
||||
|
||||
Reference in new issue
Block a user