react-native-hook-api-call
Version:
Custom React Native hook for API calls using axios
22 lines (14 loc) • 461 B
Markdown
# react-native-hook-api-call
A simple and reusable React Native hook for making API calls using axios.
## Features
- Customizable HTTP method (`GET`, `POST`, `PUT`, `DELETE`)
- Supports manual or automatic fetching
- Handles loading, error, and data state
- Optional custom axios instance support (e.g., for authentication tokens or baseURL)
## Installation
```bash
npm install react-native-hook-api-call
# or
yarn add react-native-hook-api-call