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 🙏

© 2025 – Pkg Stats / Ryan Hefner

material-loader-react-native

v1.0.1

Published

Material Design 3 inspired animated loading indicator for React Native and Expo.

Readme

🌈 material-loader-react-native

npm version License: MIT Platform Expo Compatible

A Material Design 3 inspired animated loading indicator for React Native and Expo, powered by react-native-reanimated and react-native-svg. It morphs through geometric shapes while rotating — similar to the expressive style of M3.


✨ Features

  • 🎨 Material 3 expressive style
  • 🔁 Infinite rotation animation
  • 🔺 Dynamic morphing between multiple shapes
  • ⚡ Built with react-native-reanimated for buttery-smooth performance
  • 📱 Works on iOS, Android, and Web (Expo)
  • 🧩 Fully customizable — size, colors, animation speed, etc.

🚀 Installation

npm install material-loader-react-native
# or
yarn add material-loader-react-native

📦 Peer Dependencies

Make sure you have these installed in your React Native or Expo project:

expo install react-native-reanimated react-native-svg

💡 Usage

import React from "react";
import { View } from "react-native";
import { M3eLoader } from "material-loader-react-native";

export default function App() {
  return (
    <View
      style={{
        flex: 1,
        alignItems: "center",
        justifyContent: "center",
        backgroundColor: "#FAFAFA",
      }}
    >
      <M3eLoader
        size={80}
        color="#FF5722"
        duration={3000}
        shapeInterval={1000}
        backgroundColor="#E0F7FA"
        variant="contained"
      />
    </View>
  );
}

⚙️ Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | number | 60 | Loader size (diameter for contained variant) | | color | string | #6750A4 | Fill color of the shape | | duration | number | 5000 | Duration of one full rotation in milliseconds | | shapeInterval | number | 700 | Time interval for morphing to the next shape | | backgroundColor | string | #BBDEFB | Background color for variant="contained" | | variant | 'contained' \| 'uncontained' | 'uncontained' | Loader appearance style | | style | StyleProp<ViewStyle> | undefined | Optional custom styles for the wrapper view |


🧱 Example (Expo Snack)

Try it live:
👉 Open in Expo Snack


🛠️ Development

Clone and build locally:

git clone https://github.com/Jayanthbm/material-loader-react-native.git
cd material-loader-react-native
npm install
npm run build

Then link locally to test inside another app:

npm link
cd ../your-app
npm link material-loader-react-native

🤝 Contributing

Contributions, issues, and feature requests are welcome!
Feel free to open a PR or issue on GitHub Issues.


🪪 License

MIT © 2025 Jayanthbharadwaj M


💖 Support

If you find this useful, please ⭐ the repo — it helps others discover it!