mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
[react-native] Make View overflow support scroll value
This commit is contained in:
17
types/react-native/index.d.ts
vendored
17
types/react-native/index.d.ts
vendored
@@ -1599,7 +1599,6 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle {
|
||||
borderTopWidth?: number;
|
||||
borderWidth?: number;
|
||||
opacity?: number;
|
||||
overflow?: "visible" | "hidden";
|
||||
testID?: string;
|
||||
/**
|
||||
* Sets the elevation of a view, using Android's underlying
|
||||
@@ -3386,7 +3385,7 @@ export type ImageSourcePropType = ImageURISource | ImageURISource[] | ImageRequi
|
||||
/**
|
||||
* @see https://facebook.github.io/react-native/docs/image.html
|
||||
*/
|
||||
export interface ImageProps extends ImagePropsIOS, ImagePropsAndroid, AccessibilityProps, ViewStyle {
|
||||
export interface ImagePropsBase extends ImagePropsIOS, ImagePropsAndroid, AccessibilityProps, ViewStyle {
|
||||
/**
|
||||
* onLayout function
|
||||
*
|
||||
@@ -3491,16 +3490,18 @@ export interface ImageProps extends ImagePropsIOS, ImagePropsAndroid, Accessibil
|
||||
*/
|
||||
loadingIndicatorSource?: ImageURISource;
|
||||
|
||||
/**
|
||||
* A unique identifier for this element to be used in UI Automation testing scripts.
|
||||
*/
|
||||
testID?: string;
|
||||
}
|
||||
|
||||
export interface ImageProps extends ImagePropsBase {
|
||||
/**
|
||||
*
|
||||
* Style
|
||||
*/
|
||||
style?: StyleProp<ImageStyle>;
|
||||
|
||||
/**
|
||||
* A unique identifier for this element to be used in UI Automation testing scripts.
|
||||
*/
|
||||
testID?: string;
|
||||
}
|
||||
|
||||
declare class ImageComponent extends React.Component<ImageProps> {}
|
||||
@@ -3513,7 +3514,7 @@ export class Image extends ImageBase {
|
||||
queryCache?(urls: string[]): Promise<Map<string, "memory" | "disk">>;
|
||||
}
|
||||
|
||||
export interface ImageBackgroundProps extends ImageProps {
|
||||
export interface ImageBackgroundProps extends ImagePropsBase {
|
||||
style?: StyleProp<ViewStyle>;
|
||||
imageStyle?: StyleProp<ImageStyle>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user