1.0.5 • Published 3 years ago

react-native-image-pulse v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Installation

yarn add react-native-image-pulse

Example

import React from 'react';
import PulseLoader from 'react-native-image-pulse';

const App = ({}) => (
  <PulseLoader
    avatar={'https://scontent-fra3-1.cdninstagram.com/t51.2885-15/e35/11429705_386886401514376_550879228_n.jpg'}
  />
);

API

PropertyTypeDefaultDescription
intervalnumber2000action buttons visible or not
sizenumber100width and height of the avatar
pulseMaxSizenumber250maximum size of the pulse in the background
avatarstringundefinedrequired avatar url to display
pressInValuenumber0.8should be between 0 and 1. scale of the avatar, when pressed in
pressDurationnumber150duration of the scale animation
pressInEasingEasingEasing.ineasing type of the press in animation
pressOutEasingEasingEasing.outeasing type of the press out animation
borderColorstring'#D8335B'border color of the pulse
backgroundColorstring'#ED225B55'background color of the pulse
getStylefunctionundefinedoverride the styling of the pulse. gets as parameter the Animated variable. e.g. (anim) => ({ backgroundColor: 'yellow' })