ammarahm-ed / react-native-gzip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Java 45.0%Language:C++ 17.4%Language:Objective-C++ 13.2%Language:Ruby 7.1%Language:Objective-C 6.2%Language:JavaScript 4.4%Language:TypeScript 4.3%Language:Starlark 1.4%Language:CMake 0.7%Language:C 0.2%Language:Swift 0.1%