https://github.com/52cik/rn-got
react native fetch helper.
https://github.com/52cik/rn-got
Last synced: 2 months ago
JSON representation
react native fetch helper.
- Host: GitHub
- URL: https://github.com/52cik/rn-got
- Owner: 52cik
- License: mit
- Created: 2018-12-13T15:07:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-16T03:41:19.000Z (over 6 years ago)
- Last Synced: 2025-02-28T06:59:45.810Z (3 months ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rn-got
> react native fetch helper.
## Usage
```sh
$ yarn add rn-got
``````js
import got from 'rn-got';(async () => {
let body;
body = await got('url'); // string
body = await got('url', { ajax: true }); // string
body = await got('url', { json: true }); // object
body = await got('url', { referer: 'referer url' }); // string
body = await got('url', { json: true, callbackName: 'callbackName' }); // object
})();
```