All Projects → liyuechun → react-native-simplest-hud

liyuechun / react-native-simplest-hud

Licence: other
The simplest network load indicator of react-native

Programming Languages

java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-simplest-hud

KJNetworkPlugin
🎡A lightweight but powerful Network library. Network Plugin, Support batch and chain operation. 插件版网络架构
Stars: ✭ 43 (+95.45%)
Mutual labels:  loading, mbprogresshud
Jhud
A full screen of the HUD when loading the data (Objective-C).
Stars: ✭ 1,003 (+4459.09%)
Mutual labels:  loading, hud
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+404.55%)
Mutual labels:  loading
BookLoadingView
不知道有什么用的加载页面
Stars: ✭ 40 (+81.82%)
Mutual labels:  loading
MAVCesium
An experimental web based map display for MAVProxy based on Cesium
Stars: ✭ 28 (+27.27%)
Mutual labels:  hud
jekyll-loading-lazy
🧙🏽‍♀️ Automatically adds loading="lazy" to <img> and <iframe> tags. Load images on your sites lazily without JavaScript.
Stars: ✭ 41 (+86.36%)
Mutual labels:  loading
image-loader
Image loading library for Android
Stars: ✭ 19 (-13.64%)
Mutual labels:  loading
fun-loading
基于React的Loading组件库。
Stars: ✭ 22 (+0%)
Mutual labels:  loading
css3-loading
20种常见的css3 Loading动画
Stars: ✭ 22 (+0%)
Mutual labels:  loading
ELMduino
Arduino OBD-II Bluetooth Scanner Interface Library for Car Hacking Projects
Stars: ✭ 274 (+1145.45%)
Mutual labels:  hud
wdtLoading
Asana like application loading screen
Stars: ✭ 89 (+304.55%)
Mutual labels:  loading
ngx-loader-indicator
Awesome loader for angular applications. No wrappers only you elements
Stars: ✭ 44 (+100%)
Mutual labels:  loading
vue2-loading
vue-loading presented in Vue2
Stars: ✭ 15 (-31.82%)
Mutual labels:  loading
vue-loading
Loading bar for Vue.js apps using axios
Stars: ✭ 19 (-13.64%)
Mutual labels:  loading
awesome-web-styling
Awesome Web Styling with CSS Animation Effects ⭐️
Stars: ✭ 109 (+395.45%)
Mutual labels:  loading
SquaresLoadingView
A SquaresLoadingView based on android.View, nicely rotation、easy to use.
Stars: ✭ 26 (+18.18%)
Mutual labels:  loading
cpp-indicators
A very simple, easy-to-use, and single-header-only C++ library for console based indicators (loading spinners)
Stars: ✭ 13 (-40.91%)
Mutual labels:  loading
ZVProgressHUD
ZVProgressHUD is a pure-swift and wieldy HUD.
Stars: ✭ 30 (+36.36%)
Mutual labels:  hud
Fluent-Design
Microsoft's Fluent Design with pure HTML/CSS/JS
Stars: ✭ 36 (+63.64%)
Mutual labels:  loading
iakit
无依赖 mini 组件库,只封装了 alert, toast, loading, actionSheet 等使用频率较高的组件。适用于类似 H5 活动页的简单移动端项目,不必为了使用这些组件而引入一个大而全的 UI 库和框架。
Stars: ✭ 38 (+72.73%)
Mutual labels:  loading

The simplest network load indicator of react-native

If you want to learn React-Native cross platform project,Check out ComicBook.

Design sketch

progress-hud-screen progress-hud-screen progress-hud-screen progress-hud-screen progress-hud-screen

Install

npm install --save react-native-simplest-hud

Usage

import { RNProgressHUD,mixin } from 'react-native-simplest-hud';

import jsonData from './data.json';

class ExamplePage extends  mixin(RNProgressHUD.Mixin){
<!--mixin(RNProgressHUD.Mixin) replace Component-->
    ...
    render(){
        return(
            <View style={{flex: 1,backgroundColor: 'white'}}>
                ...
                <RNProgressHUD
                    isVisible={this.state.is_hud_visible} //Fixed writing
                    color='rgb(69,149,252)' //hud color
                    label="Loading..."  //"" or "Prompt string"
                    isActivityIndicator={true} //true or false
                />
                ...
            </View>
        );
    }
}

Showing the HUD

You can display the HUD by calling:

  this.showHUD();

Dismissing the HUD

It can be hide by calling:

  this.hideHUD();

Props

The following props can be used to modify the HUD's style and/or behaviour:

Prop Type Opt/Required Default Note
isVisible Boolean Required N/A Displays the HUD when set to true.
isActivityIndicator Boolean Optional false When set to true, the HUD is show by the ActivityIndicator style,or showing by the Rotating ring style.
label String Optional Loading... Sets Prompt string of the HUD.
color String Optional rgb(69,149,252) Sets the color of the HUD spinner.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].