rn-bounceable
Version:
Native bounceable effect for any React Native component. Built with Reanimated. Compatible with Expo.
19 lines (18 loc) • 599 B
TypeScript
import * as React from 'react';
import {StyleProp, ViewStyle} from 'react-native';
import {WithSpringConfig} from 'react-native-reanimated';
declare type PureFunc = () => void;
export declare type BounceableProps = React.PropsWithChildren<{
disabled?: boolean;
noBounce?: boolean;
onPress?: PureFunc;
immediatePress?: boolean;
onLongPress?: PureFunc;
delayLongPress?: number;
activeScale?: number;
delayActiveScale?: number;
springConfig?: WithSpringConfig;
contentContainerStyle?: StyleProp<ViewStyle>;
}>;
export declare const Bounceable: React.FC<BounceableProps>;
export {};