react-native-gzip-new-architecture
Version:
Fast gzip to compress strings for android & ios in React Native with New Architecture support
31 lines (19 loc) • 685 B
Markdown
Fast gzip to compress strings for android & ios in React Native
```sh
npm install react-native-gzip
```
```js
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
```
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)