UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

29 lines (26 loc) 776 B
import { Image, ScrollView, Text, View } from 'react-native'; import createAnimatedComponent from './createAnimatedComponent'; import { addWhitelistedNativeProps, addWhitelistedUIProps, } from './ConfigHelper'; import * as reanimated2 from './reanimated2'; import * as reanimated1 from './reanimated1'; const Animated = { // components View: createAnimatedComponent(View), Text: createAnimatedComponent(Text), Image: createAnimatedComponent(Image), ScrollView: createAnimatedComponent(ScrollView), createAnimatedComponent, // configuration addWhitelistedNativeProps, addWhitelistedUIProps, // reanimated 1 ...reanimated1, // reanimated 2 ...reanimated2, }; export * from './reanimated2'; export * from './reanimated1'; export default Animated;