0.1.6 • Published 6 years ago

react-native-netify v0.1.6

Weekly downloads
20
License
MIT
Repository
github
Last release
6 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

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago