1.0.5 • Published 2 years ago

react-native-insta-pagination-dots v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

react-native-insta-pagination-dots

Instagram Like dot pagination component for React Native

Installation

Installation can be done through npm:

npm

npm i react-native-insta-pagination-dots

yarn

yarn add react-native-insta-pagination-dots

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-insta-pagination-dots'

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

License

MIT.

Author

shubh