fix: Replace 'Component' with 'ComponentType' (#647)

This commit is contained in:
Jose G 2020-03-12 05:56:12 +01:00 committed by GitHub
parent b4b1173dcc
commit 6abb273ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ interface FastImageStaticProperties {
preload: (sources: Source[]) => void preload: (sources: Source[]) => void
} }
const FastImage: React.Component<FastImageProps> & const FastImage: React.ComponentType<FastImageProps> &
FastImageStaticProperties = FastImageComponent as any FastImageStaticProperties = FastImageComponent as any
FastImage.resizeMode = resizeMode FastImage.resizeMode = resizeMode