@ffsm/native-animate
Version:
Simple animation for React Native, only React native and JavaScript
19 lines (18 loc) • 958 B
JavaScript
import { Animated, TextInput as Input, Pressable as Press, Button as Btn, TouchableOpacity as Touch, } from 'react-native';
import { withNativeAnimate } from './with-native-animate';
export * from './flatten-style';
export * from './transform';
export * from './types';
export * from './use-native-animate';
export * from './with-native-animate';
export const View = withNativeAnimate(Animated.View);
export const Text = withNativeAnimate(Animated.Text);
export const Image = withNativeAnimate(Animated.Image);
export const ScrollView = withNativeAnimate(Animated.ScrollView);
export const FlatList = withNativeAnimate(Animated.FlatList);
export const SectionList = withNativeAnimate(Animated.SectionList);
export const TextInput = withNativeAnimate(Input, true);
export const Pressable = withNativeAnimate(Press, true);
export const Button = withNativeAnimate(Btn, true);
export const TouchableOpacity = withNativeAnimate(Touch, true);
export { Animated };