npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-pulse-loader-kit

v1.0.1

Published

A customizable circular progress tracker component for React

Readme

react-native-pulse-loader-kit

A customizable and reusable pulse loader component for React Native - Expo.

Pulse Loader Demo

Installation

You can install the package via npm:

npm install react-native-pulse-loader-kit

Or via yarn:

yarn add react-native-pulse-loader-kit

Usage

Here's a basic example of how to use the PulseLoaderKit component in your React Native application:

import React from "react";
import { View } from "react-native";
import { PulseLoaderKit } from "react-native-pulse-loader-kit";

const App = () => (
  <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <PulseLoaderKit isLoaderInAction={true} />
  </View>
);

export default App;

Props

The PulseLoaderKit component accepts the following props:

| Prop | Type | Default | Description | | ------------------ | ------------------------------- | ----------------------------------- | ------------------------------------------------------------ | | dotColor | string | #3D9C91 | The color of the dots. | | dotCount | number | 3 | The number of dots to be displayed. | | dotSize | number | 20 | The size of the dots in pixels. | | interval | number | 300 | The interval between the dots in milliseconds. | | isLoaderInAction | boolean | false | The state of the loader. | | message | string | undefined | The message to be displayed below the loader. | | messageColor | string | #DD7C2E | The color of the message. | | pulseStages | number[] | [4, 6, 8, 10, 12] | The sizes of the pulse in pixels when singlePulse is true. | | singlePulse | boolean | false | If true, the loader will be a single pulse. | | isGradient | boolean | false | If true, the loader will be a gradient. | | gradientColors | [string, string, ...string[]] | ["#3D9C91", "#DD7C2E", "#3D9C2E"] | The colors of the gradient. |

Example

Here's a more detailed example demonstrating various props:

Single Pulse Example

<PulseLoaderKit
  isLoaderInAction={true}
  singlePulse={true}
  pulseStages={[4, 6, 8, 10, 12]}
  dotColor="#FF0000"
  message="Loading single pulse..."
  messageColor="#000"
  isGradient={true}
  gradientColors={["#1E3A8A", "#3B82F6", "#81D4FA", "#42A5F5"]}
/>

Multiple Pulses Example

<PulseLoaderKit
  isLoaderInAction={true}
  dotCount={5}
  dotColor="#49C91C"
  message="Loading 5 dots..."
  messageColor="#000"
  dotSize={10}
  interval={300}
/>

Contributing

Contributions are welcome! Please follow these steps to contribute:

Opening an Issue

  1. Go to the Issues page.
  2. Click on the "New Issue" button.
  3. Provide a clear and descriptive title for the issue.
  4. Describe the issue in detail, including steps to reproduce, expected behavior, and any relevant screenshots or code snippets.

Submitting a Pull Request

  1. Fork the repository by clicking the "Fork" button on the repository page.
  2. Clone your forked repository to your local machine:
    git clone https://github.com/your-username/react-native-pulse-loader-kit.git
  3. Create a new branch for your feature or bugfix:
    git checkout -b feature-or-bugfix-name
  4. Make your changes and commit them with a clear and descriptive commit message:
    git commit -m "Description of the changes"
  5. Push your changes to your forked repository:
    git push origin feature-or-bugfix-name
  6. Open a pull request from your forked repository to the main repository. Provide a clear and descriptive title and description for your pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Author

Leonardo Moura - binaryleo - 2024 Find me on LinkedIn

Acknowledgements

Thanks to all the contributors and the open-source community for their support.