# react-native-loading-modal

> A React native component for showing loading modal.

Latest version **1.1.2** (published 2024-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-loading-modal
pnpm add react-native-loading-modal
yarn add react-native-loading-modal
bun add react-native-loading-modal
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2024-08-25 |
| First published | 2022-08-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Suyash Vashishtha |
| Maintainers | suyash.codes |
| Keywords | react-native, react-component, react-native-component, react, react native, mobile, ios, android, ui, loading-modal, loading-modal-react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-loading-modal
- Repository: https://github.com/suyashvash/react-native-loading-modal
- Homepage: https://github.com/suyashvash/react-native-loading-modal#react-native-loading-modal
- Issues: https://github.com/suyashvash/react-native-loading-modal/issues
- npm.io page: https://npm.io/package/react-native-loading-modal

## 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

- 1.1.2 (latest) — 2024-08-25
- 1.1.1 — 2024-08-18
- 1.1.0 — 2023-08-16
- 1.0.9 — 2023-08-08
- 1.0.8 — 2022-10-17
- 1.0.7 — 2022-08-23
- 1.0.6 — 2022-08-22
- 1.0.5 — 2022-08-22
- 1.0.4 — 2022-08-22
- 1.0.3 — 2022-08-22
- 1.0.2 — 2022-08-22
- 1.0.1 — 2022-08-22
- 1.0.0 — 2022-08-22

## README

<img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8CEpKqFD--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mcxxxssx71v3s531jxop.png" alt="react-native-loading-modal banner" style="width:600px;"/>

# React Native Loading modal

Platform - iOS + Android 

This module provides a simple loading modal for React native apps.
A Loading modal is an modal with Activity indicator used while perfroming some process and to restrict user while it happends


## Installation

```cd
npm i react-native-loading-modal
```

## How to use

Import the modal using 

```js
import LoadingModal from "react-native-loading-modal";

```

Then in your render method

```js
<LoadingModal modalVisible={true} />
```

This will make your modal visible by default,
In order to control the Modal visibilty use React State in `modalVisible` prop.



## Props

| Name          |Type| Description |
| --------------|---------| ----------- |
| modalVisible  |`boolean`| Toggles the visibilty of modal       |
| color         |`string`|  Color of Activity indicator        |
| title         |`string`|  Custom text to show instead of default `Loading...` |
| fontFamily    |`string`|  Font family for loading text |
| darkMode      |`boolean`| Switch dark mode or light more, default is `false` |
| modalStyle    |`View Style / Object`| Custom Stylesheet of modal |
| textStyle     |`Text Style / Object`| Custom Stylesheet of text |
| indicatorSize | `small` or `large` | Size of the Activity Indicator |


## Found a Bug ?
Create an Issue and I will try to fix it

## Contribution
I am constantly trying to add more types of modal and modal usage in it.
if you want to contribute, I would love to work with you ❤️

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