{"id":4083,"url":"https://github.com/prscX/react-native-popover-menu","last_synced_at":"2025-08-04T00:31:28.051Z","repository":{"id":49115295,"uuid":"119508523","full_name":"prscX/react-native-popover-menu","owner":"prscX","description":"React Native: Native Popover Menu","archived":false,"fork":false,"pushed_at":"2022-08-31T18:11:55.000Z","size":10270,"stargazers_count":483,"open_issues_count":17,"forks_count":54,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-29T10:43:08.859Z","etag":null,"topics":["android","ios","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prscX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-30T08:50:30.000Z","updated_at":"2024-12-14T04:58:26.000Z","dependencies_parsed_at":"2022-09-26T20:30:48.851Z","dependency_job_id":null,"html_url":"https://github.com/prscX/react-native-popover-menu","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/prscX/react-native-popover-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-popover-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-popover-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-popover-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-popover-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prscX","download_url":"https://codeload.github.com/prscX/react-native-popover-menu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prscX%2Freact-native-popover-menu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268633595,"owners_count":24281816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","react-native"],"created_at":"2024-01-05T20:17:00.550Z","updated_at":"2025-08-04T00:31:27.749Z","avatar_url":"https://github.com/prscX.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/prscX"],"categories":["Components","\u003ca name=\"Alter,-Prompt,-Action-\u0026-Dialog:-Native-Modules\"\u003eAlter, Prompt, Action \u0026 Dialog: Native Modules\u003c/a\u003e","Others"],"sub_categories":["UI"],"readme":"\n\u003ch1 align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/zawadz88/MaterialPopupMenu/raw/master/art/components_menus.png\" width=\"300\" height=\"300\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-native-popover-menu\"\u003e\u003cimg src=\"http://img.shields.io/npm/v/react-native-popover-menu.svg?style=flat\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/prscX/react-native-popover-menu/pulls\"\u003e\u003cimg alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/prscX/react-native-popover-menu#License\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/react-native-popover-menu.svg?style=flat\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n    ReactNative: Native Popover Menu (Android/iOS)\n\nIf this project has helped you out, please support us with a star 🌟\n\u003c/h1\u003e\n\nThis library is a React Native bridge around native popover libraries. It allows show/guide beautiful popover menus:\n\n| **Android: [zawadz88/MaterialPopupMenu](https://github.com/zawadz88/MaterialPopupMenu)**             |\n| ----------------- |\n| \u003cimg src=\"https://github.com/zawadz88/MaterialPopupMenu/raw/master/art/sample_sections_light.png\" height=\"600\" /\u003e                  |\n\n\n| **iOS: [liufengting/FTPopOverMenu](https://github.com/liufengting/FTPopOverMenu)**             |\n| ----------------- |\n| \u003cimg src=\"https://raw.githubusercontent.com/liufengting/FTResourceRepo/master/Resource/FTPopOverMenu/screenshots.gif\" height=\"600\" /\u003e                  |\n\n\n## 📖 Getting started\n\n`$ npm install react-native-popover-menu --save`\n\n## **RN61 \u003e= RNBAS V2 \u003e**\n\n- Add `react-native-image-helper` your app package.json\n\n`$ npm install react-native-image-helper --save`\n\n- Add `react-native-vector-icons` to your app package.json and configure it as per their installation steps\n\n`$ npm install react-native-vector-icons --save`\n\n\n- **iOS**\n\n\u003e **iOS Prerequisite:** Please make sure `CocoaPods` is installed on your system\n\n\t- Add the following to your `Podfile` -\u003e `ios/Podfile` and run pod update:\n\n\n```\n  use_native_modules!\n\n  pod 'RNPopoverMenu', :path =\u003e '../node_modules/react-native-popover-menu/ios'\n\n  post_install do |installer|\n    installer.pods_project.targets.each do |target|\n      target.build_configurations.each do |config|\n        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'\n      end\n    end\n  end\n```\n\n- **Android**\n\nPlease add below snippet into your app `build.gradle`\n\n```\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n\n## **RN61 \u003e= RNPM V1 \u003e**\n\n\u003e RN60 above please use `react-native-popover-menu` V1 and above\n\n- **iOS**\n\n\u003e **iOS Prerequisite:** Please make sure `CocoaPods` is installed on your system\n\n\t- Add the following to your `Podfile` -\u003e `ios/Podfile` and run pod update:\n\n\n```\n  use_native_modules!\n\n  pod 'RNPopoverMenu', :path =\u003e '../node_modules/react-native-popover-menu/ios'\n\n  post_install do |installer|\n    installer.pods_project.targets.each do |target|\n      target.build_configurations.each do |config|\n        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'\n      end\n    end\n  end\n```\n\n- **Android**\n\nPlease add below snippet into your app `build.gradle`\n\n```\nallprojects {\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n\n## **RN61 \u003c RNPO V1 \u003c**\n\n\u003e RN60 below please use `react-native-popover-menu` V.0.*\n\n`$ react-native link react-native-popover-menu`\n\n`$ react-native link react-native-vector-icons`\n\n- **Android**\n\nPlease add below snippet into your app build.gradle\n\n```\n\nbuildscript {\n    repositories {\n        jcenter()\n        maven { url \"https://maven.google.com\" }\n    }\n    ...\n}\n\nallprojects {\n    repositories {\n        mavenLocal()\n        jcenter()\n        maven { url \"https://maven.google.com\" }\n        ...\n    }\n}\n\ndependencies {\n    implementation 'com.android.support:appcompat-v7:28.0.0'\n}\n\n```\n\n\u003e **Note:** This library is supported Android SDK 28 \u003e above\n\n- **iOS**\n  - After `react-native link react-native-popover-menu`, please verify `node_modules/react-native-popover-menu/ios/` contains `Pods` folder. If does not exist please execute `pod install` command on `node_modules/react-native-popover-menu/ios/`, if any error =\u003e try `pod repo update` then `pod install`\n\n\n\n## 💻 Usage\n\n```javascript\nimport RNPopover from 'react-native-popover-menu';\n\nimport Icon from 'react-native-vector-icons'\n\n```\n\n- React Way\n\n```javascript\n\nlet copy = \u003cIcon family={'FontAwesome'} name={'copy'} color={'#000000'} size={30} /\u003e\nlet paste = \u003cIcon family={'FontAwesome'} name={'paste'} color={'#000000'} size={30} /\u003e\nlet share = \u003cIcon family={'FontAwesome'} name={'share'} color={'#000000'} size={30} /\u003e\n\n\u003cRNPopover visible={this.state.visible} reference={this.ref}\u003e\n  \u003cRNPopover.Menu label={\"Editing\"}\u003e\n    \u003cRNPopover.Menu label={\"Copy\"} icon={copy} /\u003e\n    \u003cRNPopover.Menu label={\"Paste\"} icon={paste} /\u003e\n  \u003c/RNPopover.Menu\u003e\n  \u003cRNPopover.Menu \u003e\n    \u003cRNPopover.Menu label={\"Share\"} icon={share} /\u003e\n  \u003c/RNPopover.Menu\u003e\n\u003c/RNPopover\u003e;\n```\n\n- API Way\n\n```javascript\n\n\nlet copy = \u003cIcon family={'FontAwesome'} name={'copy'} color={'#000000'} size={30} /\u003e\nlet paste = \u003cIcon family={'FontAwesome'} name={'paste'} color={'#000000'} size={30} /\u003e\nlet share = \u003cIcon family={'FontAwesome'} name={'share'} color={'#000000'} size={30} /\u003e\n\nlet menus = [\n  {\n    label: \"Editing\",\n    menus: [\n      { label: \"Copy\", icon: copy },\n      { label: \"Paste\", icon: paste }\n    ]\n  },\n  {\n    label: \"Other\",\n    menus: [\n      { label: \"Share\", icon: share }\n    ]\n  },\n  {\n    label: \"\",\n    menus: [\n      { label: \"Share me please\" }\n    ]\n  }\n]\n\nRNPopover.Show(this.ref, {\n  title: \"\",\n  menus: menus,\n  onDone: selection =\u003e { }\n});\n\n```\n\n\u003e **Note:**\n\u003e - We have added `family` prop for `Icon` class, please make sure that you pass the props\n\n\n## 💡 Props\n\n- **Props: Generic**\n\n| Prop              | Type       | Default | Note                                                                                                       |\n| ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- |\n| `title`       | `string`     |         | Title of popover section\n| `menus` | `array` |         | Array of Menus                                                   |  |\n| `onDone(sectionSelection, menuSelection)`    | `func`     |         | It is called when menu is selected                                        |  |\n\n\n- **Props: Android**\n\n| Prop              | Type       | Default | Note                                                                                                       |\n| ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- |\n| `theme`      | `string`     |   light      | Light \u0026 Dark theme support only on Android Platform\n\n- **Props: iOS**\n\n\n| Prop              | Type       | Default | Note                                                                                                       |\n| ----------------- | ---------- | ------- | ---------------------------------------------------------------------------------------------------------- |\n| `tintColor`      | `string`     |    '#FFFFFF'     | Color of tint\n| `menuWidth`       | `number`     |         | Specify menu width of the Popover                                                            |\n| `rowHeight`     | `number` |         | Height of the menu row                                                      |\n| `rowHeight`     | `number` |         | Height of the menu row                                                      |\n| `textMargin`     | `number` |         | Specify text margin from icon                                                      |\n| `iconMargin`     | `number` |         | Specify icon margin from border                                                      |\n| `selectedRowBackgroundColor`     | `string` |         | Specify selected row background color                                                      |\n| `roundedArrow`     | `bool` |         | Specify whether rounded arrow required or not                                                     |\n| `textColor`     | `string` |         | Specify text color                                                      |\n| `borderColor`     | `string` |         | Specify border color                                                      |\n| `borderWidth`     | `number` |         | Specify border width                                                      |\n| `separatorColor`  | `string` |         | Specify the menu separator color                                          |\n| `shadowColor`  | `string` |         | Specify the shadow color |\n| `shadowOpacity`     | `float` |         | Specify shadow opacity between 0 and 1. 0 disables the shadow. |\n| `shadowRadius`     | `number` |         | Specify shadow radius                                                  |\n| `shadowOffsetX`     | `number` |         | Specify the horizontal shadow offset |\n| `shadowOffsetY`     | `number` |         | Specify the vertical shadow offset |\n\n\n## Icons\n\n- **RN Vector Icons:** It supports [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) library. Please find below snippet for the usage:\n\n```javascript\n\tlet facebook = \u003cIcon family={'FontAwesome'} name={'facebook'} color={'#000000'} size={30} /\u003e\n\n\t\u003cRNPopover.Menu label={\"Facebook\"} icon={facebook} /\u003e\n```\n\n\u003e **Note:**\n\u003e - We have added `family` prop for `Icon` class, please make sure that you pass the props\n\n\n- **Custom Icons**\n\n\u003e **Note:**\n\u003e Since we are using native libraries, we have not found a solution in order to render RN Images in production, therefore please copy all your image assets in platform specific folders:\n\n- Android: Please copy your image assets in app resource drawable folder\n- iOS: Please copy your image assets in app resources folder\n\n\u003e Please refer example application for the image usage.\n\n\n## ✨ Credits\n\n- Android: [zawadz88/MaterialPopupMenu](https://github.com/zawadz88/MaterialPopupMenu)\n- iOS: [liufengting/FTPopOverMenu](https://github.com/liufengting/FTPopOverMenu)\n\n\n## 🤔 How to contribute\nHave an idea? Found a bug? Please raise to [ISSUES](https://github.com/prscX/react-native-popover-menu/issues).\nContributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.\n\n## 💫 Where is this library used?\nIf you are using this library in one of your projects, add it in this list below. ✨\n\n\n## 📜 License\nThis library is provided under the Apache License.\n\nRNPopoverMenu @ [prscX](https://github.com/prscX)\n\n## 💖 Support my projects\nI open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n* Starring and sharing the projects you like 🚀\n* If you're feeling especially charitable, please follow [prscX](https://github.com/prscX) on GitHub.\n\n  \u003ca href=\"https://www.buymeacoffee.com/prscX\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n  Thanks! ❤️\n  \u003cbr/\u003e\n  [prscX.github.io](https://prscx.github.io)\n  \u003cbr/\u003e\n  \u003c/ Pranav \u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FprscX%2Freact-native-popover-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FprscX%2Freact-native-popover-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FprscX%2Freact-native-popover-menu/lists"}