From a3980f9a0483978f6778b2d780bd7d589c9cab98 Mon Sep 17 00:00:00 2001 From: Dylan Vann Date: Mon, 27 Sep 2021 15:48:02 +0700 Subject: [PATCH] fix: FastImage extends ViewProps fix #819 --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index c68a1ca4c..921422cd7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,6 +11,7 @@ import { StyleProp, TransformsStyle, AccessibilityProps, + ViewProps, } from 'react-native' const FastImageViewNativeModule = NativeModules.FastImageView @@ -79,7 +80,7 @@ export interface ImageStyle extends FlexStyle, TransformsStyle, ShadowStyleIOS { opacity?: number } -export interface FastImageProps extends AccessibilityProps { +export interface FastImageProps extends AccessibilityProps, ViewProps { source: Source | number resizeMode?: ResizeMode fallback?: boolean