Skip to content

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

License

Notifications You must be signed in to change notification settings

RedPillGroup/react-native-scaled-img

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ScaledImage from 'react-native-scaled-img'

define

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

use

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%