1.0.2 • Published 4 years ago

react-native-scaled-img v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

react-native-scaled-img

react-native-scaled-img allow you to make an image responsive and scalable by defining only a local url source, a height or a width, and the dimensions of the screen.

install

yarn add react-native-scaled-img

import

import ScaledImg from 'react-native-scaled-img'

define

const imgToScaled = require('./assets/imgToScaled.png')

use

<ScaledImg source={imgToScaled} width={200} style={{ opacity: 0.5 }} />