JSPM

react-native-scaled-img

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q15504F
  • License MIT

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.

Package Exports

  • react-native-scaled-img

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-scaled-img) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

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