Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
Le Tom authored and Le Tom committed Sep 2, 2020
1 parent f82b518 commit b5956dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.d.ts
Expand Up @@ -2,6 +2,7 @@ declare module 'react-native-shimmer-placeholder' {

import * as React from 'react';
import { Animated } from 'react-native';

export interface ShimmerPlaceholderProps {
width?: number | string;
height?: number | string;
Expand All @@ -18,8 +19,10 @@ declare module 'react-native-shimmer-placeholder' {
isInteraction?: boolean;
LinearGradient?: React.ComponentClass<any>;
}

export default class ShimmerPlaceholder extends React.Component<ShimmerPlaceholderProps, any> {
getAnimated(): Animated.CompositeAnimation;
}
export const createShimmerPlaceholder = (LinearGradient?: React.ComponentClass<any>) => React.ComponentClass<any>

export const createShimmerPlaceholder = (LinearGradient?: React.ComponentClass<any>) => React.ComponentClass<ShimmerPlaceholderProps>
}

0 comments on commit b5956dd

Please sign in to comment.