mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Move native version check to DEV only
Summary: This check isn't needed in prod as the bundle is served with the app. In dev mode it's possible to have native and JS out of sync. Reviewed By: yungsters Differential Revision: D15268485 fbshipit-source-id: 9aeeb6cf5ca91baa90b85e18c848c3b10d85b0f7
This commit is contained in:
committed by
Facebook Github Bot
parent
04782ff57a
commit
5bb2277245
@@ -31,7 +31,6 @@ require('./setUpGlobals');
|
||||
require('./polyfillES6Collections');
|
||||
require('./setUpSystrace');
|
||||
require('./setUpErrorHandling');
|
||||
require('./checkNativeVersion');
|
||||
require('./polyfillPromise');
|
||||
require('./setUpRegeneratorRuntime');
|
||||
require('./setUpTimers');
|
||||
@@ -41,6 +40,7 @@ require('./setUpNavigator');
|
||||
require('./setUpBatchedBridge');
|
||||
require('./setUpSegmentFetcher');
|
||||
if (__DEV__) {
|
||||
require('./checkNativeVersion');
|
||||
require('./setUpDeveloperTools');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user