Skip to content

Commit

Permalink
Fix some classes of incorrect Flow errors for Animated
Browse files Browse the repository at this point in the history
Summary: Replace the union with a spread

Reviewed By: blairvanderhoof

Differential Revision: D8715694

fbshipit-source-id: 3b1ce893a065bfc7395b576e485a79f09bacc999
  • Loading branch information
Yunyu Lin authored and facebook-github-bot committed Jul 2, 2018
1 parent 5494274 commit db2159d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Libraries/Animated/src/Animated.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ const ScrollView = require('ScrollView');
const Text = require('Text');
const View = require('View');

const Animated = {
module.exports = {
...AnimatedImplementation,
View: AnimatedImplementation.createAnimatedComponent(View),
Text: AnimatedImplementation.createAnimatedComponent(Text),
Image: AnimatedImplementation.createAnimatedComponent(Image),
ScrollView: AnimatedImplementation.createAnimatedComponent(ScrollView),
};

Object.assign((Animated: Object), AnimatedImplementation);

module.exports = ((Animated: any): typeof AnimatedImplementation &
typeof Animated);

0 comments on commit db2159d

Please # to comment.