diff --git a/native/flow-typed/npm/react-native-reanimated_v2.x.x.js b/native/flow-typed/npm/react-native-reanimated_v2.x.x.js --- a/native/flow-typed/npm/react-native-reanimated_v2.x.x.js +++ b/native/flow-typed/npm/react-native-reanimated_v2.x.x.js @@ -34,9 +34,9 @@ +originY?: number, +[key: string]: any, |}; - + declare class NodeImpl { } - + declare class ValueImpl extends NodeImpl { constructor(val: number): this; setValue(num: number): void; @@ -133,6 +133,19 @@ extrapolate?: ?ExtrapolateType, ) => number; + declare export type InterpolateColorConfig = $Shape<{ + +gamma: number, + +useCorrectedHSVInterpolation: boolean, + }>; + + declare export type InterpolateColor = ( + input: number, + inputRange: $ReadOnlyArray, + outputRange: $ReadOnlyArray, + colorSpace?: 'RGB' | 'HSV', + interpolateColorConfig?: InterpolateColorConfig, + ) => NodeImpl; + declare type EasingType = { ... }; declare type EasingModule = { +ease: EasingType, @@ -393,6 +406,18 @@ build(): AnimationConfigFunction; } + declare export class FadeInDown extends ComplexAnimationBuilder { + static createInstance(): FadeInDown; + + build(): AnimationConfigFunction; + } + + declare export class FadeOutDown extends ComplexAnimationBuilder { + static createInstance(): FadeOutDown; + + build(): AnimationConfigFunction; + } + declare type $SyntheticEvent = { +nativeEvent: $ReadOnly<$Exact>, ... @@ -480,6 +505,16 @@ springConfig?: WithSpringConfig, ) => number; + declare type WithTimingConfig = $Shape<{ + +duration: number, + +easing: EasingType, + }>; + + declare type WithTiming = ( + toValue: number | string, + timingConfig?: WithTimingConfig, + ) => number; + declare type RunOnJS = (func: F) => F; declare type CancelAnimation = (animation: number) => void; @@ -522,6 +557,7 @@ declare export var interpolateNode: InterpolateNode; declare export var interpolateColors: InterpolateColors; declare export var interpolate: Interpolate; + declare export var interpolateColor: InterpolateColor; declare export var Extrapolate: ExtrapolateModule; declare export var timing: Timing; declare export var SpringUtils: SpringUtilsModule; @@ -534,6 +570,7 @@ declare export var useDerivedValue: UseDerivedValue; declare export var useAnimatedStyle: UseAnimatedStyle; declare export var withSpring: WithSpring; + declare export var withTiming: WithTiming; declare export var runOnJS: RunOnJS; declare export var cancelAnimation: CancelAnimation; @@ -576,6 +613,7 @@ +interpolateNode: InterpolateNode, +interpolateColors: InterpolateColors, +interpolate: Interpolate, + +interpolateColor: InterpolateColor, +Extrapolate: ExtrapolateModule, +timing: Timing, +spring: Spring, @@ -588,6 +626,7 @@ +useDerivedValue: UseDerivedValue, +useAnimatedStyle: UseAnimatedStyle, +withSpring: WithSpring, + +withTiming: WithTiming, +runOnJS: RunOnJS, +cancelAnimation: CancelAnimation, ...