react-native-native-lzstring
Native LZString for react native
Ported from the excellent lz-string library by @pieroxy Along with adapted code from the C++ implementation, and partially from Qt/C++ implementation.
Working for both iOS and Android (*you need JNI installed for Android).
Installation
npm install react-native-native-lzstring
Usage
import { compress, decompress } from "react-native-native-lzstring";
// ...
const resultCompress = await compress("hello world");
const decompressed = await decompress(resultCompress);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT