1.0.0 • Published 8 years ago

react-native-pull-refresh v1.0.0

Weekly downloads
41
License
MIT
Repository
-
Last release
8 years ago

Custom Android Pull to Refresh

Inspired by the shots from the author: https://dribbble.com/yupnguyen

Coffee ConceptCoin ConceptWeather Concept
Output sampleOutput sampleOutput sample

Demos

Install Expo App on your Android smartphone or iPhone.

Scan this QR-code with your Expo App.

alt text

... or go here and try it out!

Example

The demo app from the GIF can be found at examples/.

Using npm:

$ npm install --save <name>

Using yarn:

$ yarn add <name>

Usage

import React, { Component } from 'react';

Props

PropTypeDescription
childrenReactElement<any>React Element(s) to render.
flipDuration?numberLength of flip animation in milliseconds. Default 280.
renderBackface() => ReactElement<any>Callback that renders a backface.
renderFrontface() => ReactElement<any>Callback that renders a frontface.
renderLoading?() => ReactElement<any>Callback that renders a temporary view to display before base layout occurs. If not provided, renderFrontface is used instead.

Instructions