@traveloka/react-native-pace
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

React Native PACE

NPM Version CircleCI PRs Welcome

Installation

yarn

yarn add @traveloka/react-native-pace

npm

npm i @traveloka/react-native-pace --save

Getting Started

Basic Usage

import React from 'react';
import { Pace } from '@traveloka/react-native-pace';

export default function AwesomeScreen() {
  return (
    <Pace>
      {({ progress, status }) => (
        ...
      )}
    </Pace>
  );
}

Example

// TODO

or

cd Example
yarn
react-native run-ios

Documentation

- Pace

Importing

var Pace = require('@traveloka/react-native-pace').Pace;  // ES5

import { Pace } from '@traveloka/react-native-Pace';  // ES6

Children

variable Type Default Value Description
progress number 0 start from 0 to 100
status `IDLE START DONE`

Props

Property Type Default Value Description
resetDelay number 1000 delay from done to idle
config.blackListContentTypes RegExp none black list content types
config.blackListUrls RegExp none black list urls
config.whiteListUrls RegExp none white list urls

Contributing

We'd to have your helping hand on this package! Feel free to PR's, add issues or give feedback!

Credits

Written by Jacky Wijaya (@jekiwijaya) at Traveloka.

Dependents (0)

Package Sidebar

Install

npm i @traveloka/react-native-pace

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

614 kB

Total Files

23

Last publish

Collaborators

  • angga
  • traveloka-engineering
  • district-engineering