# react-native-api-call

> It can be used to call api with minimal code.

Latest version **0.1.1** (published 2022-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-api-call
pnpm add react-native-api-call
yarn add react-native-api-call
bun add react-native-api-call
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2022-05-28 |
| First published | 2022-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | BalramY |
| Maintainers | abhipatel22 |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-api-call
- Repository: https://github.com/BalramY/react-native-api-call
- Homepage: https://github.com/BalramY/react-native-api-call#readme
- Issues: https://github.com/BalramY/react-native-api-call/issues
- npm.io page: https://npm.io/package/react-native-api-call

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2022-05-28
- 0.1.0 — 2022-05-28

## README

# react-native-api-call

It can be used to call api with minimal code.

## Installation

```sh
npm install react-native-api-call
```

## Usage

```js
import useApiCall from "react-native-api-call";

// data => Data you want to send to the backend
// ApiUrl => Url of backend server
// submit => Make this value true when you want to call api. Please make sure to set it again false after api completed response.

 const {success, error, loading} = useApiCall(
    data,
    ApiUrl,
    submit,
  );

// success => In success you will get true value when response is ok
// error => In error you will get true value when you get error in api calling
// loading => In loading you will get true/false value based on api completion

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

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