Socket
Socket
Sign inDemoInstall

react-native-dots-pagination

Package Overview
Dependencies
5
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

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
3K
decreased by-20.69%
Maintainers
2
Install size
153 kB
Created
Weekly downloads
 

Readme

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

Last updated on 09 Sep 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc