Google URL Shortener
This package is supposed to communicate between API of Google URL Shortener to your app.
Installation
You can run this package to use the package
npm install --save react-native-google-shortener
How to use the package
The first thing you need to do is set the Google API key. You can obtain to your Google Developer Console.
const setKey shorten expand = ; ;
Shorten URL
Then, to shorten your long URL, you can use this code.
Expand Shortened URL
// first argument should shortened url;
Full example code would be something like this
const setKey shorten = ;;;;// include projection or analytics
Contribution
I love feedback so you can put your feedback to Issues or make a pull request to this package. I love to get any comments regarding my work. Happy Coding.