UNPKG

react-native-scalable-image

Version:

React Native Image component which scales width or height automatically to keep the aspect ratio

18 lines (15 loc) 420 B
import { ImageProps } from 'react-native' import React, { Component } from 'react' interface IOnSizeParams { width: number, height: number, } interface IImageProps extends ImageProps { height?: number, width?: number, background?: boolean, component?: React.ReactNode, onPress?: () => void, onSize?: (onSizeParams: IOnSizeParams) => void, } export default class Image extends Component<IImageProps> {}