1.0.24 • Published 3 years ago

react-native-form-progress v1.0.24

Weekly downloads
207
License
MIT
Repository
github
Last release
3 years ago
Status
DependenciesDependencies Peer dependencies
Packagenpm package version npm downloads Type definitions

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

  • If you find this repo interesting do not forgot to give it a star.
  • If you have a feature request than open it on github and feature should be added within 2-7 days (author of the repo would keep you updated)
  • If you find a bug, open an issue on github and author would fix it less than 24 hours

Installing

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

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-progress'

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,
1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.21

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago