[rn] Adds imageStyle prop to ImageBackground

This commit is contained in:
Kyle Roach
2017-08-16 16:54:50 -04:00
parent fbb9db9df5
commit 7842fff1b2

View File

@@ -3430,6 +3430,23 @@ export interface ImageStatic extends NativeMethodsMixin, React.ComponentClass<Im
queryCache?(urls: string[]): Promise<Map<string, 'memory' | 'disk'>>
}
export interface ImageBackgroundProperties extends ImageProperties {
style?: StyleProp<ViewStyle>
imageStyle?: StyleProp<ImageStyle>
}
export interface ImageBackgroundStatic extends NativeMethodsMixin, React.ComponentClass<ImageBackgroundProperties> {
resizeMode: ImageResizeMode
getSize(
uri: string,
success: (width: number, height: number) => void,
failure: (error: any) => void
): any
prefetch(url: string): any
abortPrefetch?(requestId: number): void
queryCache?(urls: string[]): Promise<Map<string, 'memory' | 'disk'>>
}
export interface ViewToken {
item: any;
key: string;
@@ -8851,8 +8868,8 @@ export type DrawerLayoutAndroid = DrawerLayoutAndroidStatic
export var Image: ImageStatic
export type Image = ImageStatic
export var ImageBackground: ImageStatic
export type ImageBackground = ImageStatic
export var ImageBackground: ImageBackgroundStatic
export type ImageBackground = ImageBackgroundStatic
export var ImagePickerIOS: ImagePickerIOSStatic
export type ImagePickerIOS = ImagePickerIOSStatic