react-native-reanimated-player
Version:
A react-native video player that interacts like Youtube player, built upon Reanimted v2 & react-native-gesture-handle
21 lines (20 loc) • 654 B
TypeScript
import React from 'react';
import type { StyleProp, ViewStyle } from 'react-native';
export declare type RippleTargetEvent = {
x: number;
y: number;
};
declare type RippleBtnProps = {
children: React.ReactElement;
duration?: number;
overflow?: boolean;
containerStyle?: StyleProp<ViewStyle>;
backgroundColor?: string;
onAnimationEnd?: () => void;
style?: StyleProp<ViewStyle>;
};
export declare type RippleRef = {
onPress: ({ x, y }: RippleTargetEvent) => void;
};
export declare const Ripple: React.MemoExoticComponent<React.ForwardRefExoticComponent<RippleBtnProps & React.RefAttributes<RippleRef>>>;
export {};