0.1.6 • Published 4 years ago

react-native-netify v0.1.6

Weekly downloads
20
License
MIT
Repository
github
Last release
4 years ago

react-native-netify

Native networking library for react native. Use AFNetworking for iOS and FastAndroidNetworking for Android.

Getting started

$ yarn add react-native-netify

Usage

import Netify from 'react-native-netify';

// Init module
Netify.init({
    // Set timeout for request
    timeout: 60000,
});

Netify.jsonRequest({
    url: apiUrl,
    method: 'post',
    headers: {
        'Content-Type': 'application/json'
    },
    body: {
        name: userName,
    }
})
.then(response => console.log(response))
.catch(error => {
    const { code, message, response } = error;
    console.log(code, message, response);
});
0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago