0.0.5 • Published 3 years ago

react-native-chi-page-control v0.0.5

Weekly downloads
59
License
MIT
Repository
github
Last release
3 years ago

react-native-chi-page-control

Cool page control with custom animations written in React Native and inspired by Native iOS framework CHIPageControl

Installation

Using npm:

$ npm install react-native-chi-page-control --save

Using yarn:

$ yarn add react-native-chi-page-control

Usage

import { 
  PageControlAji,
  PageControlAleppo,
  PageControlJaloro,
  PageControlPoblano 
} from 'react-native-chi-page-control';

<PageControlAji progress={0.5} numberOfPages={3} />
<PageControlAleppo progress={0.5} numberOfPages={3} />
<PageControlJaloro progress={0.5} numberOfPages={3} />
<PageControlPoblano progress={0.5} numberOfPages={3} />

Examples

FlatList react-native-swiper

Properties for all components

PropDescriptionDefault
numberOfPagesNumber of pages show in page control.0
progressProgress of page. A number between 0 and 1.0
animationDurationPage scroll animation speed.50
marginSpace between pages.6
activeTintColorColor of moving page.black
hidesForSinglePageIf set true then if page control will have one page, will be hidden.true

PageControlAji & PageControlAleppo

All of the props under Properties in addition to the following:

PropDescriptionDefault
radiusPage radius.6
inactiveTransparencyInactive page opacity.0.4
inactiveBorderColorInactive page border color.None
inactiveTintColorInactive page color.black

PageControlJaloro

All of the props under Properties in addition to the following:

PropDescriptionDefault
widthWidth of page.15
heightHeight of page.6
borderRadiusPage border radius.3
inactiveTransparencyInactive page opacity.0.4
inactiveTintColorInactive page color.black

PageControlPoblano

All of the props under Properties in addition to the following:

PropDescriptionDefault
radiusPage radius.6
activeTransparencyPage view opacity.1
inactiveBorderColorInactive page color.black

Page Controls 🌶️🌶️🌶️

PageControlAji

PageControlAleppo

PageControlJaloro

PageControlPoblano

License

MIT