mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
[rn] Adds imageStyle prop to ImageBackground
This commit is contained in:
21
types/react-native/index.d.ts
vendored
21
types/react-native/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user