Remove AnimatedImplementation spread from AnimatedMock
Summary: Follow up to address Spencer's feedback on D13811035 With the spread of AnimatedImplementation, it's impossible to tell whether AnimatedMock gets out of date. This change coupled with D13953915 forces anyone adding to AnimatedImplementation to consider the mock. Reviewed By: sahrens Differential Revision: D13965249 fbshipit-source-id: e324364a75abd42d89d6222151453021618bcd5d
This commit is contained in:
parent
10c8352141
commit
7f646a5b68
|
@ -9,9 +9,15 @@
|
|||
*/
|
||||
'use strict';
|
||||
|
||||
const {AnimatedEvent, attachNativeEvent} = require('./AnimatedEvent');
|
||||
const AnimatedImplementation = require('AnimatedImplementation');
|
||||
const AnimatedValueXY = require('./nodes/AnimatedValueXY');
|
||||
const AnimatedInterpolation = require('./nodes/AnimatedInterpolation');
|
||||
const AnimatedNode = require('./nodes/AnimatedNode');
|
||||
const AnimatedProps = require('./nodes/AnimatedProps');
|
||||
const AnimatedValue = require('./nodes/AnimatedValue');
|
||||
const AnimatedValueXY = require('./nodes/AnimatedValueXY');
|
||||
|
||||
const createAnimatedComponent = require('./createAnimatedComponent');
|
||||
|
||||
import type {EndCallback} from './animations/Animation';
|
||||
import type {TimingAnimationConfig} from './animations/TimingAnimation';
|
||||
|
@ -104,14 +110,29 @@ const event = function(argMapping: Array<?Mapping>, config?: EventConfig): any {
|
|||
};
|
||||
|
||||
module.exports = {
|
||||
...AnimatedImplementation,
|
||||
Value: AnimatedValue,
|
||||
ValueXY: AnimatedValueXY,
|
||||
Interpolation: AnimatedInterpolation,
|
||||
Node: AnimatedNode,
|
||||
decay,
|
||||
timing,
|
||||
spring,
|
||||
add: AnimatedImplementation.add,
|
||||
subtract: AnimatedImplementation.subtract,
|
||||
divide: AnimatedImplementation.divide,
|
||||
multiply: AnimatedImplementation.multiply,
|
||||
modulo: AnimatedImplementation.modulo,
|
||||
diffClamp: AnimatedImplementation.diffClamp,
|
||||
delay,
|
||||
sequence,
|
||||
parallel,
|
||||
stagger,
|
||||
loop,
|
||||
event,
|
||||
createAnimatedComponent,
|
||||
attachNativeEvent,
|
||||
forkEvent: AnimatedImplementation.forkEvent,
|
||||
unforkEvent: AnimatedImplementation.unforkEvent,
|
||||
Event: AnimatedEvent,
|
||||
__PropsOnlyForTests: AnimatedProps,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue