{"library":"react-native-http","title":"React Native HTTP","description":"React Native HTTP is a lightweight HTTP service wrapper for React Native applications, designed to simplify API interactions with built-in JWT token handling. Version 0.0.3 is the latest stable release, but the package appears to be in early development with sparse documentation. It provides an abstract base class HTTPService that supports GET, POST, PUT, DELETE methods with automatic token management (Authorization header, Bearer prefix, storage key). Key differentiators: minimal overhead, token lifecycle handled internally, supports per-request authorization skipping. However, it lacks TypeScript definitions, testing, and a clear roadmap; alternatives like axios or react-native-netinfo are more mature. The project is currently in maintenance mode with infrequent updates.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install react-native-http"],"cli":null},"imports":["import { HTTPService } from 'react-native-http'","const HTTPService = require('react-native-http').HTTPService","const { HTTPService } = require('react-native-http')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { HTTPService } from 'react-native-http';\n\nclass MyAPI extends HTTPService {\n  getUsers() {\n    return this.get('users/');\n  }\n\n  createUser(data) {\n    return this.post('users/', data);\n  }\n}\n\nconst api = new MyAPI('https://api.example.com');\napi.getUsers().then(response => console.log(response)).catch(error => console.error(error));","lang":"javascript","description":"Creates a custom API class extending HTTPService with GET and POST methods, then instantiates it and calls getUsers.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}