Skip to content

Commit

Permalink
Introduce ReactNativeFeatureFlags file to control FeatureFlags in Rea…
Browse files Browse the repository at this point in the history
…ct 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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Feb 19, 2022
1 parent 4227221 commit 33aba77
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Libraries/ReactNative/ReactNativeFeatureFlags.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 33aba77

Please sign in to comment.