UNPKG

@agungkes/react-native-scalable-image

Version:

React Native Image component which scales width or height automatically to keep the aspect ratio. Using React Native Fast Image as ImageComponent

17 lines (14 loc) 382 B
import { ImageProps } from 'react-native' import { Component } from 'react' interface IOnSizeParams { width: number, height: number, } interface IImageProps extends ImageProps { height?: number, width?: number, background?: boolean, onPress?: () => void, onSize?: (onSizeParams: IOnSizeParams) => void, } export default class Image extends Component<IImageProps> {}