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

react-native-ios-popup-menu

v1.0.1

Published

Ios native popup menu for react-native. Falls back to ActionSheet for versions below IOS14. Not support for Android

Readme

react-native-ios-popup-menu

Ios native popup menu for react-native. Falls back to ActionSheet for versions below IOS14.

Installation

Using npm:

npm install react-native-ios-popup-menu

Using yarn:

yarn add react-native-ios-popup-menu

Usage

import { IosPopupMenu } from "react-native-ios-popup-menu";

// ...

<IosPopupMenu
  title="Menu Options"
  options={[
    {
      title: 'Copy',
      titleColor: '#F9B02B',
      iconColor: '#F9B02B',
      icon: 'doc.on.doc',
      id: 'copy',
    },
    {
      title: 'Save',
      icon: 'bookmark',
      id: 'save',
      destructiveButton: true,
    },
    {
      title: 'Share',
      titleColor: '#00D35C',
      iconColor: '#00D35C',
      icon: 'square.and.arrow.up',
      id: 'share',
    },
    {
      title: 'Cancel',
      id: 'cancel',
      cancelButton: true,
      onlyIos13OrBelow: true,
    },
  ]}
  onOptionSelect={(id) => console.log(`Selected: ${id}`)}
  onCloseMenu={() => console.log('Menu closed')}
  onOpenMenu={() => console.log('Menu opened')}
>
  <View style={styles.button}>
    <Text style={styles.buttonText}>Open Menu</Text>
  </View>
</IosPopupMenu>

Reference

IosPopupMenuProps

| Property | Type | Required | Description | Version | | :-------- | :------- | :----- | :------------------------- | :----- | | testIDIos14Later | string | false | TestID for ios14 or later version | IOS14+ | | testIDIos14Later | string | false | TestID for ios13 or below version | IOS13- | | title | string | false | Menu title | All | | options | IosPopupMenuOptionProps[] | true | List of menu options | All | | userInterfaceStyle | enum('light', 'dark') | false | Menu theme color, if not provided, will use the system color | All | | menuItemColor | string | false | Menu text color, if not provided, will use the system color | IOS13- | | onOptionSelect | (id: string) => void | true | Callback when menu option is selected Returns the selected option id | All | | onOpenMenu | () => void | false | Callback when menu is opened | All | | onCloseMenu | () => void | false | Callback when menu is closed. Note: In IOS14+ this callback is called only when an option is selected | All |

IosPopupMenuOptionProps

| Property | Type | Required | Description | Version | | :-------- | :------- | :----- | :------------------------- | :----- | | id | string | true | Menu option identify | All | | title | string | true | Menu option text | All | | titleColor | string | false | Menu option text color, if not provided, will use the system color | IOS14+ | | icon | string | false | Menu option icon. Note: only SF Symbols (Apple icons system) | IOS14+ | | iconColor | string | false | Menu option icon color, if not provided, will use the system color | ISO14+ | | disabled | boolean | false | Menu option disable | All | | destructiveButton | boolean | false | Menu option destructive style | IOS13- | | cancelButton | boolean | false | Menu option cancel style. Note: if this is not set in any option, the menu will not close without choosing an option | IOS13- | | onlyIos13OrBelow | boolean | false | Menu option will onlly be shown on IOS13- version | IOS13- |

Contributing

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

License

MIT