From 459f220d293d9500ce32fe190d2617b977c526f3 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 16 Aug 2017 11:18:11 -0700 Subject: [PATCH] Removed ReactNativeFeatureFlag shim from RN bundle --- scripts/rollup/modules.js | 5 ++--- .../react-native/ReactNativeFeatureFlags.js | 19 ------------------- 2 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 scripts/rollup/shims/react-native/ReactNativeFeatureFlags.js diff --git a/scripts/rollup/modules.js b/scripts/rollup/modules.js index 5907a23757d7..253472473a2d 100644 --- a/scripts/rollup/modules.js +++ b/scripts/rollup/modules.js @@ -127,10 +127,9 @@ function ignoreFBModules() { function ignoreReactNativeModules() { return [ - // This imports NativeMethodsMixin, causing - // a circular dependency. + // This imports NativeMethodsMixin, causing a circular dependency. 'View', - // We have a shim for this file. + // This file is injected based on a runtime config. 'ReactNativeFeatureFlags', ]; } diff --git a/scripts/rollup/shims/react-native/ReactNativeFeatureFlags.js b/scripts/rollup/shims/react-native/ReactNativeFeatureFlags.js deleted file mode 100644 index 1224b86f7b74..000000000000 --- a/scripts/rollup/shims/react-native/ReactNativeFeatureFlags.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * @providesModule ReactNativeFeatureFlags - * @flow - */ - -'use strict'; - -var ReactNativeFeatureFlags = { - useFiber: false, -}; - -module.exports = ReactNativeFeatureFlags;