mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
05b4570d3f
Summary: This diff refactors LayoutAnimation to use ReactNativeFeatureFlags.ENABLE_LAYOUT_ANIMATION to enable / disable this feature changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D34349648 fbshipit-source-id: 90d1db6560867e44eeffbf03e5a84edadcdd55f9
26 lines
569 B
JavaScript
26 lines
569 B
JavaScript
/**
|
|
* 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 = {|
|
|
/**
|
|
* Function used to enable / disabled Layout Animations in React Native.
|
|
* Default value = true.
|
|
*/
|
|
isLayoutAnimationEnabled: () => boolean,
|
|
|};
|
|
|
|
const ReactNativeFeatureFlags: FeatureFlags = {
|
|
isLayoutAnimationEnabled: () => true,
|
|
};
|
|
|
|
module.exports = ReactNativeFeatureFlags;
|