From 6abb273ce590ab7a111695a601b603823ac0bf4e Mon Sep 17 00:00:00 2001 From: Jose G Date: Thu, 12 Mar 2020 05:56:12 +0100 Subject: [PATCH] fix: Replace 'Component' with 'ComponentType' (#647) --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index fc04d403a..989edbeb1 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