react-native-scaled-img

1.0.2 • Public • Published

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 }} />

Package Sidebar

Install

npm i react-native-scaled-img

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

742 kB

Total Files

211

Last publish

Collaborators

  • bsisic