Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-gzip-new-architecture

LovesWorking328MIT1.0.1TypeScript support: included

Fast gzip to compress strings for android & ios in React Native with New Architecture support

react-native, ios, android, gzip, compress, decompress, new-architecture, fabric, turbo-modules

readme

react-native-gzip

Fast gzip to compress strings for android & ios in React Native

Installation

npm install react-native-gzip

Usage

import { deflate, inflate } from 'react-native-gzip';
const data = `hello world`;
const compressed = await deflate(data); // Returns a base64 string of compressed data
const decompressed = await inflate(compressed); // Decompress the data to original string value

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library