|
10 | 10 |
|
11 | 11 | 'use strict'; |
12 | 12 |
|
13 | | -const {AnimatedEvent, attachNativeEvent} = require('./AnimatedEvent'); |
14 | | -const AnimatedAddition = require('./nodes/AnimatedAddition'); |
15 | | -const AnimatedDiffClamp = require('./nodes/AnimatedDiffClamp'); |
16 | | -const AnimatedDivision = require('./nodes/AnimatedDivision'); |
17 | | -const AnimatedInterpolation = require('./nodes/AnimatedInterpolation'); |
18 | | -const AnimatedModulo = require('./nodes/AnimatedModulo'); |
19 | | -const AnimatedMultiplication = require('./nodes/AnimatedMultiplication'); |
20 | | -const AnimatedNode = require('./nodes/AnimatedNode'); |
21 | | -const AnimatedSubtraction = require('./nodes/AnimatedSubtraction'); |
22 | | -const AnimatedTracking = require('./nodes/AnimatedTracking'); |
23 | | -const AnimatedValue = require('./nodes/AnimatedValue'); |
24 | | -const AnimatedValueXY = require('./nodes/AnimatedValueXY'); |
25 | | -const DecayAnimation = require('./animations/DecayAnimation'); |
26 | | -const SpringAnimation = require('./animations/SpringAnimation'); |
27 | | -const TimingAnimation = require('./animations/TimingAnimation'); |
28 | | - |
29 | | -const createAnimatedComponent = require('./createAnimatedComponent'); |
| 13 | +import {AnimatedEvent, attachNativeEvent} from './AnimatedEvent'; |
| 14 | +import AnimatedAddition from './nodes/AnimatedAddition'; |
| 15 | +import AnimatedDiffClamp from './nodes/AnimatedDiffClamp'; |
| 16 | +import AnimatedDivision from './nodes/AnimatedDivision'; |
| 17 | +import AnimatedInterpolation from './nodes/AnimatedInterpolation'; |
| 18 | +import AnimatedModulo from './nodes/AnimatedModulo'; |
| 19 | +import AnimatedMultiplication from './nodes/AnimatedMultiplication'; |
| 20 | +import AnimatedNode from './nodes/AnimatedNode'; |
| 21 | +import AnimatedSubtraction from './nodes/AnimatedSubtraction'; |
| 22 | +import AnimatedTracking from './nodes/AnimatedTracking'; |
| 23 | +import AnimatedValue from './nodes/AnimatedValue'; |
| 24 | +import AnimatedValueXY from './nodes/AnimatedValueXY'; |
| 25 | +import DecayAnimation from './animations/DecayAnimation'; |
| 26 | +import SpringAnimation from './animations/SpringAnimation'; |
| 27 | +import TimingAnimation from './animations/TimingAnimation'; |
| 28 | + |
| 29 | +import createAnimatedComponent from './createAnimatedComponent'; |
30 | 30 |
|
31 | 31 | import type { |
32 | 32 | AnimationConfig, |
@@ -575,7 +575,7 @@ export type {AnimatedNumeric as Numeric}; |
575 | 575 | * |
576 | 576 | * See https://reactnative.dev/docs/animated |
577 | 577 | */ |
578 | | -module.exports = { |
| 578 | +export default { |
579 | 579 | /** |
580 | 580 | * Standard value class for driving animations. Typically initialized with |
581 | 581 | * `new Animated.Value(0);` |
|
0 commit comments