From f1ba9fdcfba7a214796868d91c33ed71bc137ce1 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 28 Nov 2017 14:33:36 -0800 Subject: [PATCH 1/2] Added ReactFeatureFlags shim for React Native --- .../shims/react-native/ReactFeatureFlags.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/rollup/shims/react-native/ReactFeatureFlags.js diff --git a/scripts/rollup/shims/react-native/ReactFeatureFlags.js b/scripts/rollup/shims/react-native/ReactFeatureFlags.js new file mode 100644 index 000000000000..3edadc57f027 --- /dev/null +++ b/scripts/rollup/shims/react-native/ReactFeatureFlags.js @@ -0,0 +1,20 @@ +/** + * 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 ReactFeatureFlags + * @flow + * @format + */ + +'use strict'; + +var ReactFeatureFlags = { + debugRenderPhaseSideEffects: false, +}; + +module.exports = ReactFeatureFlags; From bd536550499371c595c10bb6648e0d18acffe68d Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 28 Nov 2017 15:06:15 -0800 Subject: [PATCH 2/2] Fixed header license comment --- scripts/rollup/shims/react-native/ReactFeatureFlags.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/rollup/shims/react-native/ReactFeatureFlags.js b/scripts/rollup/shims/react-native/ReactFeatureFlags.js index 3edadc57f027..276dc914254c 100644 --- a/scripts/rollup/shims/react-native/ReactFeatureFlags.js +++ b/scripts/rollup/shims/react-native/ReactFeatureFlags.js @@ -1,14 +1,10 @@ /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * 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. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @providesModule ReactFeatureFlags - * @flow - * @format */ 'use strict';