react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
10 lines (9 loc) • 460 B
JavaScript
import { useCallback } from 'react';
import { useAnimatedStyle } from './useAnimatedStyle';
// TODO: we should make sure that when useAP is used we are not assigning styles
// when you need styles to animated you should always use useAS
export const useAnimatedProps = useAnimatedStyle;
export function useWorkletCallback(fun, deps) {
return useCallback(fun, deps !== null && deps !== void 0 ? deps : []);
}
export { useEvent, useHandler } from './utils';