react-native-pixel-webp

1.0.3 • Public • Published

react-native-pixel-webp

npm version npm downloads npm licence Platform

Parse Webp to ImageData for React Native.

Installation

$ npm install react-native-pixel-webp

For RN >= 0.65, run npm install react-native-blob-util.

For RN < 0.65, run npm install react-native-blob-util@0.16.3, and patch manually to fix: with react-native-web product build will export 'URIUtil' (reexported as 'URIUtil') was not found.

var pixelWebp= require('react-native-pixel-webp');
console.log(pixelWebp); //object

API

pixelWebp.parse(file) -> promise.then(images)

return images is Array contains one or more ImageData.

Related projects

License

MIT

Package Sidebar

Install

npm i react-native-pixel-webp

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

4.8 kB

Total Files

4

Last publish

Collaborators

  • flyskywhy