UNPKG

react-native-netclient

Version:

A network library which provides the most fastest & efficient way to handle the HTTP request and response. It acts like a rest client and supports on both ios & android. It uses the core fetch react native API. This library follows the oops standard for a

16 lines (12 loc) 255 B
import RNETWORK from './RNETWORK'; export default class LOGGER { static log(message, error){ if(RNETWORK.DEBUG_ENABLED == true){ if(error){ console.log(message, error); }else{ console.log(message); } } } }