Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzitelli committed Aug 29, 2022
1 parent a1217a4 commit 2afd368
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import Animated, {
useAnimatedStyle,
withSpring,
runOnJS,
WithSpringConfig,
} from 'react-native-reanimated';
import {TapGestureHandler, State} from 'react-native-gesture-handler';
import {useMemo} from 'react';

type PureFunc = () => void;
export type BounceableProps = {
export type BounceableProps = React.PropsWithChildren<{
disabled?: boolean;
noBounce?: boolean;
onPress?: PureFunc;
Expand All @@ -19,9 +20,9 @@ export type BounceableProps = {
delayLongPress?: number;
activeScale?: number;
delayActiveScale?: number;
springConfig?: Animated.WithSpringConfig;
springConfig?: WithSpringConfig;
contentContainerStyle?: StyleProp<ViewStyle>;
};
}>;

export const Bounceable: React.FC<BounceableProps> = ({
children,
Expand Down

0 comments on commit 2afd368

Please sign in to comment.