New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-swipe-refresh

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-swipe-refresh

Pull to refresh component for react

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

react-swipe-refresh

A react package to provide the functionality of pull to refresh.

Getting Started

Install the package using npm:

npm install react-swipe-refresh --save

Usage

Import the swipe refresh view component as following

import SwipeRefreshView from 'react-swipe-refresh';

now use the component

<SwipeRefreshView
    disableChromeDefaultRefresh
></SwipeRefreshView

Props

  • overrideRefresh (Default false): Default behaviour is progress bar is shown for 1.5 sec before going out off the screen.
  • showRefresh (default false): Let developer handle the showing and hiding of the Progress bar. Must be used with overrideRefresh.
  • disableChromeDefaultRefresh (default: false): ovveride the default behaviour for mobile browser of refreshing when swiped from top.
  • onRefresh : Callback is called when refresh animation is comleted.

License

MIT

Keywords

pull-to-refresh

FAQs

Package last updated on 23 Nov 2018

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