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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@modhamanish/rn-electric-border

v1.0.0

Published

A React Native Electric Border component with animated glowing neon border effect using Skia and Reanimated.

Readme

@modhamanish/rn-electric-border

A React Native component that renders an animated electric/neon glowing border effect around any view. Built with @shopify/react-native-skia and react-native-reanimated.

Features

  • Animated electric/neon border with glow effect
  • Customizable border color, speed, chaos, and border radius
  • Works with any child content
  • Smooth 60fps animation using Reanimated worklets
  • Multi-layered glow effect using Skia blur filters

Demo

Installation

Step 1: Install the package

npm install @modhamanish/rn-electric-border
# or
yarn add @modhamanish/rn-electric-border

Step 2: Install peer dependencies

This package requires the following peer dependencies. Make sure they are installed in your project:

npm install @shopify/react-native-skia react-native-reanimated
# or
yarn add @shopify/react-native-skia react-native-reanimated

Note: react and react-native are also required but should already be installed in your React Native project.

Step 3: Additional setup

  • react-native-reanimated requires adding the Babel plugin. Add this to your babel.config.js:
module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: ['react-native-reanimated/plugin'],
};

iOS

After installing, run:

cd ios && pod install

Usage

import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import ElectricBorder from '@modhamanish/rn-electric-border';

const App = () => {
  return (
    <View style={styles.container}>
      <ElectricBorder
        borderRadius={10}
        speed={0.5}
        chaos={0.5}
        strokeWidth={1.2}
      >
        <View style={styles.card}>
          <Text style={[styles.text, styles.blueGlow]}>Electric Border</Text>
        </View>
      </ElectricBorder>

      <ElectricBorder
        borderRadius={10}
        speed={0.5}
        chaos={0.5}
        strokeWidth={1.2}
        color="#FF0000"
      >
        <View style={styles.card}>
          <Text style={[styles.text, styles.redGlow]}>Electric Border</Text>
        </View>
      </ElectricBorder>
    </View>
  );
};

export default App;

const styles = StyleSheet.create({
  container: {
    padding: 20,
    flex: 1,
    justifyContent: 'center',
    backgroundColor: '#121212',
    gap: 40,
  },
  card: {
    paddingHorizontal: 20,
    paddingVertical: 30,
    borderWidth: 1.5,
    borderColor: '#FFFFFF',
    borderRadius: 10,
  },
  text: {
    color: '#FFFFFF',
    shadowOffset: { width: 0, height: 0 },
    shadowOpacity: 1,
    shadowRadius: 10,
    fontWeight: 'bold',
    fontSize: 40,
    textAlign: 'center',
  },
  blueGlow: {
    shadowColor: '#00AEFF',
  },
  redGlow: {
    shadowColor: '#FF0000',
  },
});

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | children | React.ReactNode | required | Content to wrap with the electric border | | borderRadius | number | 12 | Border radius of the container | | color | string | "#00AEFF" | Color of the electric glow effect | | speed | number | 0.5 | Animation speed multiplier | | chaos | number | 0.5 | Intensity of the electric noise effect | | strokeWidth | number | 1 | Width of the electric border stroke | | containerStyle | ViewStyle | undefined | Additional styles for the outer container |

License

ISC