UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

16 lines 926 B
import type { UnknownRecord } from '../common'; import type { DependencyList } from './commonTypes'; import type { GeneralHandlers, UseHandlerContext } from './useHandlerCommon'; export type { UseHandlerContext } from './useHandlerCommon'; /** * Lets you find out whether the event handler dependencies have changed. * * @param handlers - An object of event handlers. * @param dependencies - An optional array of dependencies. Only relevant when * using Reanimated without the Babel plugin on the Web. * @returns An object containing a boolean indicating whether the dependencies * have changed. * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/useHandler */ export declare function useHandler<Event extends object, Context extends UnknownRecord>(handlers: GeneralHandlers<Event, Context>, dependencies?: DependencyList): UseHandlerContext<Context>; //# sourceMappingURL=useHandler.d.ts.map