# react-native-animated-pagination-dot

> test

Latest version **0.4.0** (published 2022-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-animated-pagination-dot
pnpm add react-native-animated-pagination-dot
yarn add react-native-animated-pagination-dot
bun add react-native-animated-pagination-dot
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2022-09-15 |
| First published | 2019-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 88.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 200 |
| Author | Pratt Yeon |
| Maintainers | rouge |
| Keywords | pagination, dot, react-native, instagram, scroll, scrollable, page, paginate |

## Links

- npm: https://www.npmjs.com/package/react-native-animated-pagination-dot
- Repository: https://github.com/Soomgo-Mobile/react-native-animated-pagination-dot
- Homepage: https://github.com/Soomgo-Mobile/react-native-animated-pagination-dot#readme
- Issues: https://github.com/Soomgo-Mobile/react-native-animated-pagination-dot/issues
- npm.io page: https://npm.io/package/react-native-animated-pagination-dot

## Dependencies (1)

- [react-use](https://npm.io/package/react-use.md) ^17.3.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2022-09-15
- 0.3.2 — 2022-01-23
- 0.3.0 — 2021-09-22
- 0.2.0 — 2021-09-21
- 0.1.8 — 2020-09-05
- 0.1.7 — 2020-08-29
- 0.1.6 — 2020-07-26
- 0.1.5 — 2019-09-26
- 0.1.4 — 2019-09-25
- 0.1.3 — 2019-09-21
- 0.1.2 — 2019-09-11
- 0.1.1 — 2019-09-11
- 0.1.0 — 2019-09-11
- 0.0.3 — 2019-09-11
- 0.0.2 — 2019-09-11
- … 2 more at https://npm.io/package/react-native-animated-pagination-dot/versions

## README

react-native-animated-pagination-dot
=============

Paginate component for React native simple dot with **moving animation** 

-----
[![download](https://img.shields.io/npm/dm/react-native-animated-pagination-dot?logo=npm&style=flat-square)](https://www.npmjs.com/package/react-native-animated-pagination-dot)
[![npm version](https://img.shields.io/npm/v/react-native-animated-pagination-dot?style=flat-square)](https://www.npmjs.com/package/react-native-animated-pagination-dot)
[![stars](https://img.shields.io/github/stars/rouge3351/react-native-animated-pagination-dot?logo=github&style=flat-square)](https://github.com/rouge3351/react-native-animated-pagination-dot)
-----

## Installation

Installation can be done through `npm`:

```shell
npm i react-native-animated-pagination-dot --save
```

-----
## Usage
You can easily add to your project.<br/>
just import component and set current page index and max page index.
```js
import React from 'react'
import {View} from 'react-native'
import PaginationDot from 'react-native-animated-pagination-dot'

const ExampleDotPaginate:React.FC = ()=>{
    const [curPage] = React.useState(0);
    
    return (
        <PaginationDot
            activeDotColor={'black'}
            curPage={curPage}
            maxPage={20}
        />
    )
}

export default ExampleDotPaginate;
```

-----
## Example

<img src="https://user-images.githubusercontent.com/4319422/189922878-7172d48c-8307-47ac-806a-6255f7bd6d3b.gif" alt="Pagination Dot Demo" width="320"/>

-----
## API

### Props

| **Prop**           | **Type**                    | **Required(Default Value)** | **Description**                                                |
|--------------------| ----------------------------|----------------------------|----------------------------------------------------------------|
| `curPage`          | `number`                    | required                   | Pagination curernt Page                                        |
| `maxPage`          | `number`                    | required                   | Total Page in Pagination                                       |
| `activeDotColor`   | `string`                    | required                   | Active Dot Color. dot will control by opacity                  |
| `inactiveDotColor` | `string`                    | undefined                  | InActive Dot Color. dot will control by opacity                |
| `sizeRatio`        | `number`                    | 1.0                        | Customize Dot Size. minimum value is 1.0 (*recommend 1.0 ~ 2.0*) |
| `vertical`         | `boolean`                   | false                      | Dot direction                                                  |

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.


## License

MIT.

## Author

pratt

---
_Source: https://npm.io/package/react-native-animated-pagination-dot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
