Let, I have a string with 20 characters. Then, I need to compress it to a string with a length of 3 or 5 characters. Again, when I need the original string back, I should be able to decompress the compressed string and get the original string.

Is it possible to do? If yes, how to do it in REACT NATIVE? Can you please suggest me a good solution?

Thanks.