0.0.3 • Published 3 years ago

react-native-pagination-dots v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-native-pagination-dots

React native pagination dots.

npm.io npm.io

Install

npm i react-native-pagination-dots

Usage

import React from 'react'
import PaginationDots from 'react-native-pagination-dots'

export default App() => {
    const length = 5
    const index = 2
    return (
        <PaginationDots length={length} activeIndex={index} />
    )
}

Props

PropertyTypeDefaultDescription
lengthnumber5Total number of dots
activeIndexnumber0Index of active dot
activeWidthnumber30Width of active dot
passiveWidthnumber10Width of non-active dot
heightnumber10Height of dots
spacingnumber5Spacing between dots
activeColorstring"#ffffff"Color of active dot
passiveColorstring"#ffffff"Color of non-active dot

License

MIT