From 33aba774564acdec216e02e28f17ad08ad7bc26b Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 18 Feb 2022 17:35:53 -0800 Subject: [PATCH] Introduce ReactNativeFeatureFlags file to control FeatureFlags in React Native Summary: introduce ReactNativeFeatureFlags file to control FeatureFlags in React Native changelog: [JS][Added] Create new API to configure FeatureFlags in ReactNative Reviewed By: JoshuaGross Differential Revision: D34349458 fbshipit-source-id: 73bb3704fc47e950ee1fcefcfaec1a85dfbcef59 --- .../ReactNative/ReactNativeFeatureFlags.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Libraries/ReactNative/ReactNativeFeatureFlags.js diff --git a/Libraries/ReactNative/ReactNativeFeatureFlags.js b/Libraries/ReactNative/ReactNativeFeatureFlags.js new file mode 100644 index 00000000000000..89f4334d23c99d --- /dev/null +++ b/Libraries/ReactNative/ReactNativeFeatureFlags.js @@ -0,0 +1,21 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @flow strict-local + * @format + */ + +'use strict'; + +export type FeatureFlags = {| + isLayoutAnimationEnabled: () => boolean, +|}; + +const ReactNativeFeatureFlags: FeatureFlags = { + isLayoutAnimationEnabled: () => true, +}; + +module.exports = ReactNativeFeatureFlags;