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

react-native-switchery

v0.1.2

Published

A customizable, iOS-inspired animated switch component for React Native

Readme

react-native-switchery

npm version iOS support Android support

An iOS-inspired, highly customizable switch component for React Native that runs seamlessly on iOS and Android with smooth thumb glides, elastic pill fill, and first-class accessibility support.

Demo

Features

  • 🎨 Variants & palettes – Built-in primary, info, success, warning, danger presets or override the colors directly.
  • iOS-style animation – Thumb glides first; pill fill collapses with a delayed scale for a native feel.
  • 🛠️ Fine-grained styling – Control track/thumb borders, sizes, and shadows.
  • 🧠 Accessibility ready – Switch role, disabled/checked state, custom labels and hints.

Quick Start

Installation

npm install react-native-switchery
# or
yarn add react-native-switchery

Usage

import React from 'react';
import { Switch } from 'react-native-switchery';

export const Demo = () => {
  const [value, setValue] = React.useState(false);

  return (
    <Switch
      value={value}
      onValueChange={setValue}
      variant="info"
      size="small"
    />
  );
};

Props

| Prop | Type | Default | Description | | -------------------- | ----------------------------------------------------------- | ----------------- | --------------------------------------------------------- | | value | boolean | – | Controlled value of the switch. | | onValueChange | (value: boolean) => void | () => {} | Callback fired after a press toggles the value. | | variant | 'primary' \| 'info' \| 'success' \| 'warning' \| 'danger' | primary | Built-in palette presets (overridden by explicit colors). | | activeColor | string | variant color | Fill color when expanded. | | inactiveColor | string | variant color | Track color when collapsed. | | thumbColor | string | variant color | Thumb fill color. | | size | 'mini' \| 'small' \| 'default' \| 'large' | default | Track/thumb preset dimensions. | | trackBorderColor | string | contextual | Outline color for the pill. | | trackBorderWidth | number | 1 | Outline width for the pill. | | thumbBorderColor | string | rgba(0,0,0,0.1) | Thumb outline color. | | thumbBorderWidth | number | 1 | Thumb outline width. | | disabled | boolean | false | Disables presses and shows a frosted overlay. | | testID | string | switch | Identifier for testing (overlay uses testID-disabled). | | accessibilityLabel | string | – | VoiceOver/TalkBack label. | | accessibilityHint | string | – | VoiceOver/TalkBack hint. |

License

MIT © Ehtisham Ali