JSPM

@akbeniwal/react-native-image-compressor

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q18138F
  • License MIT

A lightweight image compression utility for React Native

Package Exports

  • @akbeniwal/react-native-image-compressor
  • @akbeniwal/react-native-image-compressor/dist/index.js

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 (@akbeniwal/react-native-image-compressor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@akbeniwal/react-native-image-compressor

Simple image compression utility for React Native.

Install

yarn add @akbeniwal/react-native-image-compressor

Usage

import { compressImage } from "@akbeniwal/react-native-image-compressor";

const result = await compressImage(uri, {
  quality: 0.8,
});

console.log(result.uri);