UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

13 lines (11 loc) 471 B
'use strict'; import type { PlainStyle } from '../../common'; import { CSSKeyframesRuleImpl } from '../platform'; import type { CSSAnimationKeyframes, CSSKeyframesRule } from '../types'; export default function keyframes<S extends PlainStyle>( // TODO - think of better types keyframeDefinitions: CSSAnimationKeyframes<Pick<S, keyof PlainStyle>> & CSSAnimationKeyframes<PlainStyle> ): CSSKeyframesRule { return new CSSKeyframesRuleImpl(keyframeDefinitions); }