Skip to content

Commit 024d257

Browse files
huntiefacebook-github-bot
authored andcommitted
Expose Animated.CompositeAnimation type (#53538)
Summary: Pull Request resolved: #53538 Resolves react-native-community/discussions-and-proposals#893 (comment). Changelog: [General][Added] - `Animated.CompositeAnomation` is now exposed when using `"react-native-strict-api"` Reviewed By: rshest Differential Revision: D81380950 fbshipit-source-id: f90f175cfd6f34c6a9564a8e340156103887d710
1 parent 544f3b3 commit 024d257

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/react-native/Libraries/Animated/AnimatedExports.js.flow

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import AnimatedImplementation from './AnimatedImplementation';
1212

13+
export type {CompositeAnimation} from './AnimatedImplementation';
1314
export type {DecayAnimationConfig} from './animations/DecayAnimation';
1415
export type {SpringAnimationConfig} from './animations/SpringAnimation';
1516
export type {TimingAnimationConfig} from './animations/TimingAnimation';

packages/react-native/ReactNativeApi.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<f1e4b96664dc09f71aefe6f699a7e299>>
7+
* @generated SignedSource<<db6de028840aefaf5eeb3e2cec029553>>
88
*
99
* This file was generated by scripts/js-api/build-types/index.js.
1010
*/
@@ -1347,6 +1347,7 @@ declare type AndroidSwitchNativeProps = Readonly<
13471347
>
13481348
declare namespace Animated {
13491349
export {
1350+
CompositeAnimation,
13501351
DecayAnimationConfig,
13511352
SpringAnimationConfig,
13521353
TimingAnimationConfig,
@@ -5966,7 +5967,7 @@ export {
59665967
AlertOptions, // a0cdac0f
59675968
AlertType, // 5ab91217
59685969
AndroidKeyboardEvent, // e03becc8
5969-
Animated, // 6b0cea93
5970+
Animated, // 6ad7a14c
59705971
AppConfig, // ebddad4b
59715972
AppRegistry, // 6cdee1d6
59725973
AppState, // f7097b1b

0 commit comments

Comments
 (0)