Git Product home page Git Product logo

react-native-pulsator's Introduction

react-native-pulsator

Pulsator for React Native. This library binds iOS and Android libraries from below repositories:

iOS: https://github.com/shu223/Pulsator Android: https://github.com/booncol/Pulsator4Droid

Getting started

$ yarn add react-native-pulsator

And that's it. React Native will link native libraries automatically.

Wrap a child view with RNPulsator and the library will create pulsing effects from the center of the view.

Usage

import RNPulsator from 'react-native-pulsator';
import img from './img.png'
// .....

<View style={styles.container}>
    <RNPulsator
      color="#0075c4"
      numPulse={1}
      animationDuration={1}>
      <View style={styles.imgContainer}>
        <Image source={img} />
      </View>
    </RNPulsator>
</View>

Props

color

The colour of the pulse

numPulse

Number of pulses. In other words the number circles that are pulsing on each repeat.

animationDuration

How long will each animation take in seconds.

DEMO

Android iOS

react-native-pulsator's People

Contributors

aliustaoglu avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

juraam

react-native-pulsator's Issues

Compilation failed in Android

Hi, I try to build android with your library and it can not build.
RNPulsatorView.java:4: error: package pl.bclogic.pulsator4droid.library does not exist import pl.bclogic.pulsator4droid.library.PulsatorLayout; ^ RNPulsatorView.java:7: error: cannot find symbol public class RNPulsatorView extends PulsatorLayout { and other, so as I understood java module can't find android library pulsator4droid

Can you help me with issue ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.