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