Candlefinance Page Control Save

UIPageControl wrapper for React Native

Project README

npm version

Page Control

UIPageControl wrapper for react native.

Demo

Watch the video

Installation

npm install @candlefinance/page-control

yarn add @candlefinance/page-control

Usage

import { PageControlView } from "@candlefinance/page-control";

const [currentPage, setCurrentPage] = React.useState(0);

// ...
<PageControlView
  currentPage={currentPage}
  hidesForSinglePage
  numberOfPages={8}
  onPageChange={(event) => setCurrentPage(event.nativeEvent.currentPage)}
  currentPageIndicatorTintColor="#ff0067"
  pageIndicatorTintColor="#D3D3D3"
  style={styles.box}
/>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Open Source Agenda is not affiliated with "Candlefinance Page Control" Project. README Source: candlefinance/page-control
Stars
116
Open Issues
1
Last Commit
1 year ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating