0.0.5 • Published 3 years ago

react-native-full-loading v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

License: MIT Version: 0.0.3 Platform: IOS and Android

react-native-full-loading

A simple React component that works for loading.

Demo

Demo


Getting Started

  1. First, You need to install It, just like You would do with any NPM package:
npm i react-native-full-loading

2.Then, You need to import the library component within your own component

import React from 'react'
import FullLoading from 'react-native-full-loading'

3.You can now start using the full-loading components!

export default function YourComponent(){

    const [visible, setVisible] = React.useState(false);

    if(...){
        setVisible(true);
    }else{
        setVisible(false);
    }

    return(
        ...
        <FullLoading visible={visible} />
    );
}

Props

ParametersDefault ValueValues
backgroundColorrgba(0, 0, 0, 0.4)Colorsrgb, hex, string
colorIndicator#FFFColorsrgb, hex, string
sizeIndicatorlargelarge, small
colorText#FFFColorsrgb, hex, string
textLoadingString
visiblefalsebool - Required