All Projects → xinghui0000 → react-native-progress-button

xinghui0000 / react-native-progress-button

Licence: MIT License
A react native button component that can show progress.

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-progress-button

Flutterplayground
Playground app for Flutter
Stars: ✭ 859 (+4952.94%)
Mutual labels:  progress-bar, button
Progressbutton
Android Progress Button
Stars: ✭ 662 (+3794.12%)
Mutual labels:  progress-bar, button
ProBar
this script will allow you to configure a progress bar with a timer with other options
Stars: ✭ 0 (-100%)
Mutual labels:  progress-bar
TezButton
TezButton is include Title/Backgound Color, border, corner radius options and Bottom/Left label, Include data button.
Stars: ✭ 20 (+17.65%)
Mutual labels:  button
mp-progress
专注于小程序圆环形进度条的小工具
Stars: ✭ 72 (+323.53%)
Mutual labels:  progress-bar
CircularProgressBar
Another circular ProgressBar attempt
Stars: ✭ 14 (-17.65%)
Mutual labels:  progress-bar
progress-bar-log
A component to display a progress bar and last X logs at the same time.
Stars: ✭ 44 (+158.82%)
Mutual labels:  progress-bar
RevealLayout
揭示效果布局,可以指定2个子布局,以圆形揭示效果切换选中状态
Stars: ✭ 118 (+594.12%)
Mutual labels:  button
DottedProgressBar
Simple and powerful animated progress bar with dots
Stars: ✭ 40 (+135.29%)
Mutual labels:  progress-bar
netflix-list-exporter
💫‎‎‎‏‏‎ An Extension to export your lists from Netflix to Clipboard area and share it with your friends.
Stars: ✭ 60 (+252.94%)
Mutual labels:  button
cli-progress
⌛ easy to use progress-bar for command-line/terminal applications
Stars: ✭ 672 (+3852.94%)
Mutual labels:  progress-bar
GradientProgress
A gradient progress bar (UIProgressView).
Stars: ✭ 38 (+123.53%)
Mutual labels:  progress-bar
CustomProgress
自定义水平带百分比数字的进度条以及自定义圆形带百分比数字的进度条
Stars: ✭ 58 (+241.18%)
Mutual labels:  progress-bar
DownloadPorgressBar
This is a download progressbar.
Stars: ✭ 19 (+11.76%)
Mutual labels:  progress-bar
GradientProgressView
一个简单的进度条控件
Stars: ✭ 15 (-11.76%)
Mutual labels:  progress-bar
slack widgets
An abstraction of the JSON structure needed to create widgets in Slack message attachments
Stars: ✭ 14 (-17.65%)
Mutual labels:  button
ng2-go-top-button
A simple customizable go-top-button component for Angular projects.
Stars: ✭ 18 (+5.88%)
Mutual labels:  button
btns
A collection of buttons with cool hover effects
Stars: ✭ 78 (+358.82%)
Mutual labels:  button
rprogress
React ajax loader progress bar with clear API
Stars: ✭ 12 (-29.41%)
Mutual labels:  progress-bar
RoundedHorizontalProgressBar
RoundedHorizontalProgressBar - An Android custom rounded Progress Bar that supports different Colors as progress both primary & background colors. Allows you to animate the progress for a specific duration
Stars: ✭ 34 (+100%)
Mutual labels:  progress-bar

react-native-progress-button

npm version Build Status

A react native button component that can show progress.

ScreenShot-ios ScreenShot-android

Installation

$ npm install react-native-progress-button --save

Usage

import {ProgressButton} from 'react-native-progress-button';

<ProgressButton {...props}/>

Properties

Props Description Default
style button style
-width: width of button
-height:height of button.
-borderWidth:width of outer border.
-borderRadius: radius of outer border, this will influence inner progress view in android.
-backgroundColor: background color of button, not visiable when buttonState is 'static'.
-padding: padding area betweenn outer border and inner progresss view
-width:400
-height:40
-borderWidth:0
-borderRadius:5
-backgroundColor:'limegreen'
-padding:0
buttonState the state which control button whether in progress, one of three follow value:
-'staic': static button, button not in progress.
-'indeterminate': indeterminate progress button, activityIndicator is shown.
-'progress': like progress bar.
'static'
smoothly whether the progress is smooth,only used when buttonState is 'progress' true
paused Whether to pause the animation of progress,
-false: pause a progress animation or deley new progress animation start.
-true: restart a progress animation, The progress speed is the same as before the pause, so try not set timingConfig before restart the progress
false
timingConfig config of the Animated.timing() in which smooth progress animation used. duration, delay, easing {duration: 100}
progressColor background color of inner progress bar. 'limegreen'
unfilledColor Color of the remaining progress. 'lightgrey'
progress Progress value when the button in 'progress' state. A number between 0 and maxProgress 0
activityIndicator a indetermimate indicator when buttonState is 'indetermimate',shown left of text ActitvityIndicator
activityIndicatorPadding padding area between indetermimate indicator and text 5
text Text shown in the center of the button 'OK'
textStyle text style of the text. they will be included in style attr of text textStyle:{color: 'white'}
onPress A function to be called as soon as the user press the button.(event, buttonState, progress) => {}
onProgressAnimatedFinished A function to be called as soon as the progress animation finished, (progress) => {}

Notes

Because of overflow:hidden is not supported on Android, inner progress view displayed diffrently between android and ios when buttonState is progress. inner progress view will has border radius , but not in ios, according to outer border radius in android. And when the progress is small, inner progress view will look odd.So try not to set border radius too large in android.

License

MIT

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].