DefinitelyTyped/types/react-native-share/Overlay.d.ts
Jesse Katsumata 5c0fe950c3 react-native-share: add types for components (#41395)
* react-native-share: add types for components

* react-native-share: apply lint

* react-native-share: apply lint
2020-01-06 15:38:23 -08:00

21 lines
541 B
TypeScript

import { Component, ReactNode } from 'react';
import { Animated, ViewProps, StyleProp } from 'react-native';
export interface OverlayState {
fadeAnim: Animated.Value;
overlayStyle: StyleProp<ViewProps>;
}
export interface OverlayProps {
visible: boolean;
onCancel: () => void;
children: ReactNode;
}
declare class Overlay extends Component<OverlayProps, OverlayState> {
onAnimatedEnd(): void;
UNSAFE_componentWillReceiveProps(newProps: OverlayProps): void;
render(): JSX.Element;
}
export default Overlay;