Removed ReactNativeFeatureFlag shim from RN bundle (#10472)
Brian Vaughn committed
Aug 18, 2017 at 08:26 UTC
e464cf2deffdd4139784674698e871161c42b0d5
2 files changed
+2
-22
scripts/rollup/modules.js
+2
-3
@@ -127,10 +127,9 @@ function ignoreFBModules() {
127
128
function ignoreReactNativeModules() {
129
return [
130
- // This imports NativeMethodsMixin, causing
131
- // a circular dependency.
130
+ // This imports NativeMethodsMixin, causing a circular dependency.
131
'View',
133
- // We have a shim for this file.
132
+ // This file is injected based on a runtime config.
133
'ReactNativeFeatureFlags',
134
];
135
}
scripts/rollup/shims/react-native/ReactNativeFeatureFlags.js
deleted
-19
@@ -1,19 +0,0 @@
1
-/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- * @providesModule ReactNativeFeatureFlags
10
- * @flow
11
- */
12
-
13
-'use strict';
14
-
15
-var ReactNativeFeatureFlags = {
16
- useFiber: false,
17
-};
18
-
19
-module.exports = ReactNativeFeatureFlags;