Skip to content

Commit

Permalink
fix: Replace 'Component' with 'ComponentType' (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjgf authored Mar 12, 2020
1 parent b4b1173 commit 6abb273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ interface FastImageStaticProperties {
preload: (sources: Source[]) => void
}

const FastImage: React.Component<FastImageProps> &
const FastImage: React.ComponentType<FastImageProps> &
FastImageStaticProperties = FastImageComponent as any

FastImage.resizeMode = resizeMode
Expand Down

0 comments on commit 6abb273

Please sign in to comment.