Socket
Socket
Sign inDemoInstall

react-native-dots-pagination

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-dots-pagination

Paging as dots for react-native.


Version published
Weekly downloads
3.1K
decreased by-10.07%
Maintainers
2
Weekly downloads
 
Created
Source

react-native-dots-pagination

Paging as dots for react-native.

  • Quickstart
  • Using
  • Props
  • Issues

Quickstart

yarn add react-native-dots-pagination

Using

import React, { Component } from 'react';
import Dots from 'react-native-dots-pagination';


class Example extends Component {
  constructor(props) {
    super(props);
    this.state = {
      active: 0
    }
  }
  
  render() {
    return (
      <Dots length={10} active={this.state.active} />
    )
  }
}

Props

NameDefault valueDescription
length10Required. The amount of dots you want to use.
active1Required. The index of the currently active dot.
width300The overall width works like a center.
paddingVertical10Average Vertical padding.
paddingHorizontal10Average Horizontal padding.
passiveDotWidth10(Width, Height) for passive dot.
activeDotWidth15(Width, Height) for active dot.
passiveDotHeight10Height for passive dot.
activeDotHeight15Height for active dot.
passiveColor#CCCCCCColors for passive dots.
activeColor#016bd8Colors for active dots.
marginHorizontal 2To adjust Margin Horizontal
onScrollTofunctionTrigger when scrolls and index changes

Issues

Github Issues are used to track todos, bugs, feature requests, and more.

Keywords

FAQs

Package last updated on 09 Sep 2023

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