mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* react-native-share: add types for components * react-native-share: apply lint * react-native-share: apply lint
21 lines
541 B
TypeScript
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;
|