0.0.13 • Published 5 years ago

react-native-dynamic-text-loading v0.0.13

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

Dynamically changes the text while loading screen for React Native. This is the loading like Heartstone and Discord's dynamically changes loading texts :)

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

React Native:

npm i react-native-dynamic-text-loading

Peer Dependencies

IMPORTANT! You need install them.
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-spinkit": ">= 1.3.0"

Basic Usage

import Loading from "react-native-dynamic-text-loading";

<Loading list={[
    "Assets are loading...",
    "Data is fetching...",
    "Running an algorithm..."]
}/>

Configuration - Props

PropertyTypeDefaultDescription
backgroundColorcolor"rgba(0, 0, 0, 0.5)"change the backdrop's color
typestring"FadingCircleAlt"change the type of spinner's icon
sizenumber50change the spinner's size
colorcolorwhitechange the spinner's color
spinnerStylestyledefaultset your own style for spinner
spinnerIsVisiblebooleantruechange the visibility of spinner
textColorcolorwhitechange the dynamic text's color
textStylestyledefaultset your own style for text
numberOfLinesnumber2RECOMMENDED! Do NOT change the number of lines, users cannot read long texts below 1.5 sec

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Dynamic Text Loading Library is available under the MIT license. See the LICENSE file for more info.