expo-fetcher
v0.9.2
Published
A Native fetch API for Expo
Maintainers
Readme
Expo Fetcher
Expo Fetcher simplifies and unifies HTTP requests in Expo, React Native, and native (iOS/Android) projects. It provides a fetch inspired API with advanced handling for headers, cookies, redirects, and errors.
Main Features
- Flexible header and cookie management
- Redirect control and error handling
- Full support for HTTP methods and body types
- Seamless integration with Expo and React Native
- Native implementation for iOS and Android(soon)
Installation
npm install expo-fetcherBasic Usage
import { fetch } from 'expo-fetcher';
const response = await fetch('https://api.example.com/data', {
method: 'GET',
headers: { 'Authorization': 'Bearer TOKEN' }
});
const data = await response.json();Contributing
Contributions are welcome!
- Fork the project
- Create a branch
- Add your changes
- Open a Pull Request
License
MIT
