fix: FastImage extends ViewProps (#829)

fix #819
This commit is contained in:
Dylan Vann 2021-09-27 15:53:25 +07:00 committed by GitHub
parent d96b851f38
commit 68db8712bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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