react-native-autosize-image
Version:
react-native image width auto width or height computation
17 lines (13 loc) • 497 B
TypeScript
import * as React from 'react';
import { ImageProps, ImageSourcePropType } from 'react-native';
export interface AutoImageProps extends ImageProps {
source: ImageSourcePropType;
mainAxisSize: number;
mainAxis?: 'horizontal' | 'vertical';
maxCrossAxisSize?: number;
fallbackSource?: ImageSourcePropType;
onCrossAxisSizeChange?: (crossAxisSize: number) => void;
animated?: boolean;
}
declare class AutoImage extends React.Component<AutoImageProps, any> {}
export default AutoImage;