Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-insta-pagination-dots

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-insta-pagination-dots

Instagram like carousel pagination dots with React Native

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by55.82%
Maintainers
1
Weekly downloads
 
Created
Source

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

Pagination Dot Demo

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

Keywords

FAQs

Package last updated on 18 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc