1 | import { Image, ScrollView, Text, View } from 'react-native';
|
2 | import createAnimatedComponent from './createAnimatedComponent';
|
3 | import {
|
4 | addWhitelistedNativeProps,
|
5 | addWhitelistedUIProps,
|
6 | } from './ConfigHelper';
|
7 | import * as reanimated2 from './reanimated2';
|
8 | import * as reanimated1 from './reanimated1';
|
9 |
|
10 | const Animated = {
|
11 |
|
12 | View: createAnimatedComponent(View),
|
13 | Text: createAnimatedComponent(Text),
|
14 | Image: createAnimatedComponent(Image),
|
15 | ScrollView: createAnimatedComponent(ScrollView),
|
16 | createAnimatedComponent,
|
17 |
|
18 | addWhitelistedNativeProps,
|
19 | addWhitelistedUIProps,
|
20 |
|
21 | ...reanimated1,
|
22 |
|
23 | ...reanimated2,
|
24 | };
|
25 |
|
26 | export * from './reanimated2';
|
27 | export * from './reanimated1';
|
28 | export default Animated;
|