Skip to content

Commit 1ebf83d

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Add missing exports from Animated namespace (facebook#50103)
Summary: Pull Request resolved: facebook#50103 Changelog: [Internal] Reviewed By: huntie Differential Revision: D71398771 fbshipit-source-id: a6cf790a35dd51857df5bf441fec6eca7bc0c3aa
1 parent 6cbd6ff commit 1ebf83d

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,19 @@ export {default as Node} from './nodes/AnimatedNode';
2424
export {default as Value} from './nodes/AnimatedValue';
2525
export {default as ValueXY} from './nodes/AnimatedValueXY';
2626

27+
/** @deprecated Use Animated.Interpolation instead */
28+
export type {default as AnimatedInterpolation} from './nodes/AnimatedInterpolation';
29+
/** @deprecated Use Animated.Color instead */
30+
export type {default as AnimatedColor} from './nodes/AnimatedColor';
31+
2732
export type {AnimatedValueConfig as AnimatedConfig} from './nodes/AnimatedValue';
33+
export type {default as AnimatedNode} from './nodes/AnimatedNode';
34+
export type {default as AnimatedAddition} from './nodes/AnimatedAddition';
35+
export type {default as AnimatedDiffClamp} from './nodes/AnimatedDiffClamp';
36+
export type {default as AnimatedDivision} from './nodes/AnimatedDivision';
37+
export type {default as AnimatedModulo} from './nodes/AnimatedModulo';
38+
export type {default as AnimatedMultiplication} from './nodes/AnimatedMultiplication';
39+
export type {default as AnimatedSubtraction} from './nodes/AnimatedSubtraction';
2840

2941
export const add = AnimatedImplementation.add;
3042
export const attachNativeEvent = AnimatedImplementation.attachNativeEvent;

packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,16 @@ export { default as Interpolation } from \\"./nodes/AnimatedInterpolation\\";
172172
export { default as Node } from \\"./nodes/AnimatedNode\\";
173173
export { default as Value } from \\"./nodes/AnimatedValue\\";
174174
export { default as ValueXY } from \\"./nodes/AnimatedValueXY\\";
175+
export type { default as AnimatedInterpolation } from \\"./nodes/AnimatedInterpolation\\";
176+
export type { default as AnimatedColor } from \\"./nodes/AnimatedColor\\";
175177
export type { AnimatedValueConfig as AnimatedConfig } from \\"./nodes/AnimatedValue\\";
178+
export type { default as AnimatedNode } from \\"./nodes/AnimatedNode\\";
179+
export type { default as AnimatedAddition } from \\"./nodes/AnimatedAddition\\";
180+
export type { default as AnimatedDiffClamp } from \\"./nodes/AnimatedDiffClamp\\";
181+
export type { default as AnimatedDivision } from \\"./nodes/AnimatedDivision\\";
182+
export type { default as AnimatedModulo } from \\"./nodes/AnimatedModulo\\";
183+
export type { default as AnimatedMultiplication } from \\"./nodes/AnimatedMultiplication\\";
184+
export type { default as AnimatedSubtraction } from \\"./nodes/AnimatedSubtraction\\";
176185
declare export const add: $FlowFixMe;
177186
declare export const attachNativeEvent: $FlowFixMe;
178187
declare export const createAnimatedComponent: $FlowFixMe;

0 commit comments

Comments
 (0)