From 68db8712bff865e6b5464b02c956d5198529a2f7 Mon Sep 17 00:00:00 2001 From: Dylan Vann Date: Mon, 27 Sep 2021 15:53:25 +0700 Subject: [PATCH] fix: FastImage extends ViewProps (#829) fix #819 --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index c68a1ca..921422c 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