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
This commit is contained in:
Yunyu Lin 2018-07-02 13:26:38 -07:00 коммит произвёл Facebook Github Bot
Родитель 54942746d4
Коммит db2159d0b3
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -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);