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

@miinos/rnactionsheet

v0.1.2

Published

Native Action Sheet for React Native

Readme

React Native Platform Bottom Sheet

npm version Platform - Android Platform - iOS

A cross-platform bottom sheet component for React Native that provides a native Material Design bottom sheet on Android and uses the native ActionSheet on iOS.

| Android Demo | iOS Demo | | -------------------------------- | ------------------------ | | Android Demo | iOS Demo |

Features

  • 🎯 Consistent API across platforms
  • 📱 Native Material Design bottom sheet on Android
  • 🍎 Native ActionSheet on iOS
  • 💪 Written in TypeScript
  • ⚡ Lightweight with zero dependencies
  • 🎨 Customizable styling options
  • 🌙 Dark mode support (iOS)

Installation

# Using npm
npm install @miinos/rnactionsheet

# Using yarn
yarn add @miinos/rnactionsheet

Usage

import RNActionSheet from '@miinos/rnactionsheet';

// Basic usage
const handlePress = () => {
  const selectedIndex = RNActionSheet.showActionSheetWithOptions(
    {
      options: ['Take Photo', 'Choose from Library', 'Cancel'],
      cancelButtonIndex: 2,
      title: 'Select Photo',
      message: 'Choose a method to add your photo',
    },
    (index) => {
      switch (selectedIndex) {
        case 0:
          // Handle take photo
          break;
        case 1:
          // Handle choose from library
          break;
      }
    }
  );
};

// With destructive option
const handleDelete = () => {
  const selectedIndex = RNActionSheet.showActionSheetWithOptions(
    {
      options: ['Delete', 'Cancel'],
      cancelButtonIndex: 1,
      destructiveButtonIndex: 0,
      title: 'Delete Item',
      message: 'Are you sure you want to delete this item?',
    },
    (index) => {
      if (selectedIndex === 0) {
        // Handle delete
      }
    }
  );
};

API Reference

showActionSheetWithOptions(options, callback)

Returns a Promise that resolves with the selected index.

Options

| Property | Type | Description | Platform | | ---------------------- | -------- | ------------------------------------------ | -------- | | options | string[] | Array of option titles | Both | | cancelButtonIndex | number | Index of cancel button | Both | | destructiveButtonIndex | number | Index of destructive button (shown in red) | Both | | title | string | Title text shown above options | Both | | message | string | Message text shown below title | Both | | tintColor | string | Tint color for buttons (iOS only) | iOS | | dark | boolean | Enable dark mode (iOS only) | iOS |

Examples

Share Menu

const shareOptions = {
  options: [
    'Share via Email',
    'Share on Twitter',
    'Share on Facebook',
    'Copy Link',
    'Cancel',
  ],
  cancelButtonIndex: 4,
  title: 'Share',
  message: 'Choose how you want to share this content',
};

RNActionSheet.showActionSheetWithOptions(shareOptions, (index) => {
  console.log(index);
});

Platform Differences

| Feature | Android | iOS | | ------------------------- | ------------------------------------- | ------------------------------ | | Animation | Material Design bottom sheet slide-up | Native ActionSheet slide-up | | Styling | Material Design guidelines | Native iOS appearance | | Dark Mode | System default | Configurable via dark option | | Dismiss on backdrop press | Yes | N/A |

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Troubleshooting

Author

Amine SOUAIAIA


Made with create-react-native-library