0.3.1 • Published 8 months ago

react-native-dots-pagination v0.3.1

Weekly downloads
1,601
License
-
Repository
-
Last release
8 months ago

react-native-dots-pagination

Paging as dots for react-native.

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.

0.3.1

8 months ago

0.3.0

1 year ago

0.2.0

3 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago