1 | import { Image, ScrollView, Text, View } from 'react-native';
|
2 | import EasingNode 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 Animation from './animations/Animation';
|
14 | import {
|
15 | addWhitelistedNativeProps,
|
16 | addWhitelistedUIProps,
|
17 | } from './ConfigHelper';
|
18 | import backwardCompatibleAnimWrapper from './animations/backwardCompatibleAnimWrapper';
|
19 | import {
|
20 | Transition,
|
21 | Transitioning,
|
22 | createTransitioningComponent,
|
23 | } from './Transitioning';
|
24 | import SpringUtils from './animations/SpringUtils';
|
25 | import useValue from './useValue';
|
26 | import * as reanimated2 from './reanimated2';
|
27 |
|
28 | const decayWrapper = backwardCompatibleAnimWrapper(
|
29 | decay,
|
30 | Animation.decayDefaultState
|
31 | );
|
32 | const timingWrapper = backwardCompatibleAnimWrapper(
|
33 | timing,
|
34 | Animation.timingDefaultState
|
35 | );
|
36 | const springWrapper = backwardCompatibleAnimWrapper(
|
37 | spring,
|
38 | Animation.springDefaultState
|
39 | );
|
40 | const Animated = {
|
41 |
|
42 | View: createAnimatedComponent(View),
|
43 | Text: createAnimatedComponent(Text),
|
44 | Image: createAnimatedComponent(Image),
|
45 | ScrollView: createAnimatedComponent(ScrollView),
|
46 | Code: AnimatedCode,
|
47 | createAnimatedComponent,
|
48 |
|
49 |
|
50 | Clock: AnimatedClock,
|
51 | Value: AnimatedValue,
|
52 | Node: AnimatedNode,
|
53 |
|
54 |
|
55 | ...base,
|
56 | ...derived,
|
57 |
|
58 |
|
59 | decay: decayWrapper,
|
60 | timing: timingWrapper,
|
61 | spring: springWrapper,
|
62 | SpringUtils,
|
63 |
|
64 |
|
65 | addWhitelistedNativeProps,
|
66 | addWhitelistedUIProps,
|
67 |
|
68 |
|
69 | useValue,
|
70 |
|
71 |
|
72 | ...reanimated2,
|
73 | };
|
74 |
|
75 | export default Animated;
|
76 |
|
77 |
|
78 | export * from './base';
|
79 | export * from './derived';
|
80 |
|
81 | export * from './reanimated2';
|
82 |
|
83 | export {
|
84 | EasingNode,
|
85 | Transitioning,
|
86 | Transition,
|
87 | createTransitioningComponent,
|
88 |
|
89 | AnimatedClock as Clock,
|
90 | AnimatedValue as Value,
|
91 | AnimatedNode as Node,
|
92 |
|
93 | decayWrapper as decay,
|
94 | timingWrapper as timing,
|
95 | springWrapper as spring,
|
96 | SpringUtils,
|
97 |
|
98 | useValue,
|
99 | };
|