fix: Replace 'Component' with 'ComponentType' (#647)
This commit is contained in:
parent
b4b1173dcc
commit
6abb273ce5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue