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

react-native-pages

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-pages

Easy to use page view component

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
264
decreased by-16.19%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-pages

npm license

Easy to use page view component for React Native

example

Features

  • Easy to use
  • Consistent look and feel on iOS and Android
  • Landscape and portrait orientation support
  • Configurable scroll direction
  • Configurable page indicator position, color and opacity
  • Animated page indicator
  • Pure javascript implementation

Roadmap

0.2.0

  • Parallax support
  • Methods next(), prev() and currentPage()

Installation

npm install --save react-native-pages

Usage

import React, { Component } from 'react';
import { Pages } from 'react-native-pages';

class Example extends Component {
  render() {
    return (
      <Pages>
        <View style={{ flex: 1, backgroundColor: 'red' }} />
        <View style={{ flex: 1, backgroundColor: 'green' }} />
        <View style={{ flex: 1, backgroundColor: 'blue' }} />
      </Pages>
    );
  }
}

Properties

namedescriptiontypedefault
horizontalScroll directionBooleantrue
indicatorColorPage indicator colorStringrgb(255, 255, 255)
indicatorOpacityPage indicator opacity (inactive dots)Number0.30
indicatorPositionPage indicator positionStringhorizontal? bottom : right
onScrollEndScroll end callbackFunction-
renderPagerRender pager callbackFunction-

Example

git clone https://github.com/n4kz/react-native-pages
cd react-native-pages/example
npm install
react-native run-ios # or run-android

BSD License

Copyright 2017 Alexander Nazarov. All rights reserved.

Keywords

FAQs

Package last updated on 03 Apr 2017

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