# react-native-fetch-http

> react native fetch http

Latest version **0.0.2** (published 2017-09-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-fetch-http
pnpm add react-native-fetch-http
yarn add react-native-fetch-http
bun add react-native-fetch-http
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-09-08 |
| First published | 2017-09-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | zhangxiaohu |
| Maintainers | zhangxiaohu |
| Keywords | react, native, fetch, http |

## Links

- npm: https://www.npmjs.com/package/react-native-fetch-http
- Repository: https://github.com/zxh742755443/react-native-fetch-http
- Homepage: https://github.com/zxh742755443/react-native-fetch-http#readme
- Issues: https://github.com/zxh742755443/react-native-fetch-http/issues
- npm.io page: https://npm.io/package/react-native-fetch-http

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2017-09-08
- 0.0.1 — 2017-09-07

## README

## 介绍
在fetch基础上封装一层，可以设置timeout，支持get，post请求
## 安装
```
npm install react-native-fetch-http
```
## 用法
```
import { AppRegistry, View } from "react-native";
import React, { Component } from "react";
import Http from "react-native-fetch-http";

export default class Index extends Component {
  componentDidMount() {
    var http = new Http(50000); //50000ms
    http
      .get("http://api.m.panda.tv/ajax_get_live_list_by_multicate", {
        hotroom: 1,
        __plat: "h5"
      })
      .then(content => {
        alert(content.errno);
      });
  }

  render() {
    return <View />;
  }
}

AppRegistry.registerComponent("Test", () => Index);

```

---
_Source: https://npm.io/package/react-native-fetch-http · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
