Skip to content

Commit db2159d

Browse files
Yunyu Linfacebook-github-bot
authored andcommitted
Fix some classes of incorrect Flow errors for Animated
Summary: Replace the union with a spread Reviewed By: blairvanderhoof Differential Revision: D8715694 fbshipit-source-id: 3b1ce893a065bfc7395b576e485a79f09bacc999
1 parent 5494274 commit db2159d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Libraries/Animated/src/Animated.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ const ScrollView = require('ScrollView');
1616
const Text = require('Text');
1717
const View = require('View');
1818

19-
const Animated = {
19+
module.exports = {
20+
...AnimatedImplementation,
2021
View: AnimatedImplementation.createAnimatedComponent(View),
2122
Text: AnimatedImplementation.createAnimatedComponent(Text),
2223
Image: AnimatedImplementation.createAnimatedComponent(Image),
2324
ScrollView: AnimatedImplementation.createAnimatedComponent(ScrollView),
2425
};
25-
26-
Object.assign((Animated: Object), AnimatedImplementation);
27-
28-
module.exports = ((Animated: any): typeof AnimatedImplementation &
29-
typeof Animated);

0 commit comments

Comments
 (0)