diff --git a/src/index.tsx b/src/index.tsx index fc04d40..989edbe 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -199,7 +199,7 @@ interface FastImageStaticProperties { preload: (sources: Source[]) => void } -const FastImage: React.Component & +const FastImage: React.ComponentType & FastImageStaticProperties = FastImageComponent as any FastImage.resizeMode = resizeMode