UNPKG

@kietpt2003/react-native-core-ui

Version:
23 lines 913 B
import React from 'react'; import { ImageResizeMode, ImageSourcePropType, StyleProp, ViewStyle } from 'react-native'; import { ImageStyle, ResizeMode as FastImageResizeMode, Source } from 'react-native-fast-image'; export type CardMediaComponent = 'image' | 'background'; interface BaseProps { children?: React.ReactNode; } export interface CardMediaImageProps extends BaseProps { component?: 'image'; source: number | Source | undefined; resizeMode?: FastImageResizeMode; style?: StyleProp<ImageStyle>; } export interface CardMediaBackgroundProps extends BaseProps { component: 'background'; source: ImageSourcePropType; resizeMode?: ImageResizeMode; style?: StyleProp<ViewStyle>; } export type CardMediaProps = CardMediaImageProps | CardMediaBackgroundProps; declare const CardMedia: React.FC<CardMediaProps>; export default CardMedia; //# sourceMappingURL=CardMedia.d.ts.map