38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule Animated
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
|
|
var AnimatedImplementation = require('AnimatedImplementation');
|
|
var Image = require('Image');
|
|
var Text = require('Text');
|
|
var View = require('View');
|
|
|
|
let AnimatedScrollView;
|
|
|
|
const Animated = {
|
|
View: AnimatedImplementation.createAnimatedComponent(View),
|
|
Text: AnimatedImplementation.createAnimatedComponent(Text),
|
|
Image: AnimatedImplementation.createAnimatedComponent(Image),
|
|
get ScrollView() {
|
|
// Make this lazy to avoid circular reference.
|
|
if (!AnimatedScrollView) {
|
|
AnimatedScrollView = AnimatedImplementation.createAnimatedComponent(require('ScrollView'));
|
|
}
|
|
return AnimatedScrollView;
|
|
},
|
|
};
|
|
|
|
Object.assign((Animated: Object), AnimatedImplementation);
|
|
|
|
module.exports = ((Animated: any): (typeof AnimatedImplementation) & typeof Animated);
|