DefinitelyTyped/types/react-native-material-ripple/index.d.ts
Paweł Lula 5651158378
🤖 Merge PR #46473 [react-native] #46426 types of property key are incompatible by @desfero
* #46426 Add a failing test

* #46426 Fix failing test

* #46426 Add comments

* #46426 Fix `ref`s

* #46426 Revert invaid change

* #46426 Put code comments properly

* #46426 Fix react-native-material-ripple tests
2020-08-02 05:58:37 -04:00

24 lines
951 B
TypeScript

// Type definitions for react-native-material-ripple 0.9
// Project: https://github.com/n4kz/react-native-material-ripple
// Definitions by: Serhiy Zhelizniak <https://github.com/SerhiyZheliznjak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from 'react';
import { TouchableWithoutFeedback, Animated, ViewProps } from 'react-native';
export type RippleProps = TouchableWithoutFeedback['props'] &
Animated.AnimatedProps<ViewProps> & {
rippleColor?: string;
rippleOpacity?: number;
rippleDuration?: number;
rippleSize?: number;
rippleContainerBorderRadius?: number;
rippleCentered?: boolean;
rippleSequential?: boolean;
rippleFades?: boolean;
disabled?: boolean;
onRippleAnimation?(animation: Animated.CompositeAnimation, callback: () => void): void;
};
export default class Ripple extends React.Component<RippleProps> {}