UNPKG

831 BTypeScriptView Raw
1import type { DefaultStyle, DependencyList } from './commonTypes';
2/**
3 * Lets you create a styles object, similar to StyleSheet styles, which can be
4 * animated using shared values.
5 *
6 * @param updater - A function returning an object with style properties you
7 * want to animate.
8 * @param dependencies - An optional array of dependencies. Only relevant when
9 * using Reanimated without the Babel plugin on the Web.
10 * @returns An animated style object which has to be passed to the `style`
11 * property of an Animated component you want to animate.
12 * @see https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedStyle
13 */
14export declare function useAnimatedStyle<Style extends DefaultStyle>(updater: () => Style, dependencies?: DependencyList | null): Style;
15//# sourceMappingURL=useAnimatedStyle.d.ts.map
\No newline at end of file