0.4.0 • Published 2 years ago

react-native-animated-pagination-dot v0.4.0

Weekly downloads
461
License
MIT
Repository
github
Last release
2 years ago

react-native-animated-pagination-dot

Paginate component for React native simple dot with moving animation


download npm version

stars

Installation

Installation can be done through npm:

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

Usage

You can easily add to your project. just import component and set current page index and max page index.

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


API

Props

PropTypeRequired(Default Value)Description
curPagenumberrequiredPagination curernt Page
maxPagenumberrequiredTotal Page in Pagination
activeDotColorstringrequiredActive Dot Color. dot will control by opacity
inactiveDotColorstringundefinedInActive Dot Color. dot will control by opacity
sizeRationumber1.0Customize Dot Size. minimum value is 1.0 (recommend 1.0 ~ 2.0)
verticalbooleanfalseDot direction

Contributing

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

License

MIT.

Author

pratt

0.4.0

2 years ago

0.3.2

2 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.11

5 years ago

0.0.1

5 years ago