0.2.2 • Published 1 year ago

@candlefinance/page-control v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm version

Page Control

UIPageControl wrapper for react native.

Demo

Watch the video

Installation

npm install @candlefinance/page-control

yarn install @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