1 | import { Image, ScrollView, Text, View } from 'react-native';
|
2 | import Easing from './Easing';
|
3 | import AnimatedClock from './core/AnimatedClock';
|
4 | import AnimatedValue from './core/AnimatedValue';
|
5 | import AnimatedNode from './core/AnimatedNode';
|
6 | import AnimatedCode from './core/AnimatedCode';
|
7 | import * as base from './base';
|
8 | import * as derived from './derived';
|
9 | import createAnimatedComponent from './createAnimatedComponent';
|
10 | import decay from './animations/decay';
|
11 | import timing from './animations/timing';
|
12 | import spring from './animations/spring';
|
13 | import TimingAnimation from './animations/TimingAnimation';
|
14 | import SpringAnimation from './animations/SpringAnimation';
|
15 | import DecayAnimation from './animations/DecayAnimation';
|
16 | import {
|
17 | addWhitelistedNativeProps,
|
18 | addWhitelistedUIProps,
|
19 | } from './ConfigHelper';
|
20 | import backwardCompatibleAnimWrapper from './animations/backwardCompatibleAnimWrapper';
|
21 | import {
|
22 | Transition,
|
23 | Transitioning,
|
24 | createTransitioningComponent,
|
25 | } from './Transitioning';
|
26 | import SpringUtils from './animations/SpringUtils';
|
27 | import useValue from './useValue';
|
28 |
|
29 |
|
30 | const decayWrapper = backwardCompatibleAnimWrapper(decay, DecayAnimation);
|
31 | const timingWrapper = backwardCompatibleAnimWrapper(timing, TimingAnimation);
|
32 | const springWrapper = backwardCompatibleAnimWrapper(spring, SpringAnimation);
|
33 | const Animated = {
|
34 |
|
35 | View: createAnimatedComponent(View),
|
36 | Text: createAnimatedComponent(Text),
|
37 | Image: createAnimatedComponent(Image),
|
38 | ScrollView: createAnimatedComponent(ScrollView),
|
39 | Code: AnimatedCode,
|
40 | createAnimatedComponent,
|
41 |
|
42 |
|
43 | Clock: AnimatedClock,
|
44 | Value: AnimatedValue,
|
45 | Node: AnimatedNode,
|
46 |
|
47 |
|
48 | ...base,
|
49 | ...derived,
|
50 |
|
51 |
|
52 | decay: decayWrapper,
|
53 | timing: timingWrapper,
|
54 | spring: springWrapper,
|
55 | SpringUtils,
|
56 |
|
57 |
|
58 | addWhitelistedNativeProps,
|
59 | addWhitelistedUIProps,
|
60 |
|
61 |
|
62 | useValue,
|
63 | };
|
64 |
|
65 | export default Animated;
|
66 |
|
67 |
|
68 | export * from './base';
|
69 | export * from './derived';
|
70 |
|
71 | export {
|
72 | Easing,
|
73 | Transitioning,
|
74 | Transition,
|
75 | createTransitioningComponent,
|
76 |
|
77 |
|
78 | AnimatedClock as Clock,
|
79 | AnimatedValue as Value,
|
80 | AnimatedNode as Node,
|
81 |
|
82 |
|
83 | decayWrapper as decay,
|
84 | timingWrapper as timing,
|
85 | springWrapper as spring,
|
86 | SpringUtils,
|
87 |
|
88 |
|
89 | useValue,
|
90 | };
|