1.1.0 • Published 9 months ago

react-native-loading-modal v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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

npm i react-native-loading-modal

How to use

Import the modal using

import { LoadingModal } from "react-native-loading-modal";

Then in your render method

<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

NameTypeDescription
modalVisiblebooleanToggles the visibilty of modal
colorstringColor of Activity indicator
taskstringCustom label to show with instead of Loading....
titlestringCustom text to show with Loading... as Image Loading....
fontFamilystringFont family for loading text
darkModebooleanSwitch dark mode or light more, default is false
modalStyleView Style / ObjectCustom Stylesheet of modal
textStyleText Style / ObjectCustom Stylesheet of text

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 ❤️