1.0.11 • Published 4 years ago

react-native-form-prorgress v1.0.11

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

NPM

React Native Form progress

A react native component super useful in displaying progress when user is filling up forms like signup page, setting, information catering etc

Note

Developer of this repo looking for full time interesting oppertunities, connect on linkedin

Installing

npm i react-native-device-info
npm i react-native-form-prorgress

For IOS

cd ios
pod install

for people using RN <= 0.59, please read the installation instruction from react-native-device-info repo

Using

import ProgressBar from react-native-form-prorgress

And then

	<ProgressBar 
					currentProgress={7} 
					totalNumberOfProgressBars={8}
					colorOfProgressBar="#2E7D32"
					 />

and just keep incrementing current progress

Working GIFS

With blink

ezgif com-video-to-gif

Props

PropTypeDefaultRequireddescription
hideProgressBarBooleanfalseNohides progress bar ( returns auxilary component)
colorOfProgressBarstring'black'NoWhat Color do you want your progress bar to have
colorOfNonProgressBarstring'white'Nothe space progress bar is yet to take
currentProgressnumbernoneYesthe current progress of your progress bar, increment this value on sucessful completion of event
totalNumberOfProgressBarsnumbernoneYesTypical this determines how many boxes should progress bar have in all together
heightOfProgressBarnumber5Nowhat should be the height of your progress bar
SafeAreaViewDeciderPropsobjectSee belowNoTakes SafeAreaViewDeciderProps Props as an object
blinkbooleantrueNoDo you wan the progress bar to blink or not
durationForTheBlinkfalse500Nohow fast you want the blink to happen

Props for Safe Area

Pass Safe Area props like this

	SafeAreaViewDeciderProps: {
		statusBarHiddenForNotch: false,
		statusBarHiddenForNonNotch: false,
	},

Default value for Safe Area are

statusBarHiddenForNotch: false,
statusBarHiddenForNonNotch: false,