UNPKG

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