{"_id":"@cuvent/react-native-context-menu-view","_rev":"4-51b3f7492fa808501c010831ae12954e","name":"@cuvent/react-native-context-menu-view","dist-tags":{"latest":"2.0.3"},"versions":{"2.0.0":{"name":"@cuvent/react-native-context-menu-view","title":"React Native Context Menu View GH","version":"2.0.0","description":"Use native context menu views from React Native with gesture handler support.","main":"index.js","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cuvent/react-native-context-menu-view.git","baseUrl":"https://github.com/cuvent/react-native-context-menu-view"},"keywords":["react-native"],"author":{"name":"Matthew Iannucci","email":"mpiannucci@gmail.com"},"license":"MIT","licenseFilename":"LICENSE","peerDependencies":{"react":"^16.8.1","react-native":">=0.60.0-rc.0 <1.0.x","react-native-gesture-handler":"^1.10.3"},"devDependencies":{"react":"^16.9.0","react-native":"^0.61.5"},"gitHead":"6316789d273e2e0ed2db1dedbe46e50c8e234f7c","bugs":{"url":"https://github.com/cuvent/react-native-context-menu-view/issues"},"homepage":"https://github.com/cuvent/react-native-context-menu-view#readme","_id":"@cuvent/react-native-context-menu-view@2.0.0","_nodeVersion":"12.18.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-I/QgvbcHk5EpZXtxaYUPAc8xYUzl4etxTnYMEmOH11+8vE18qixdJXmijBvXbON0YeqVFKtVYdx3PUCRDMooHg==","shasum":"46ffd70a469a61ca0547279b398361e74d541140","tarball":"https://registry.npmjs.org/@cuvent/react-native-context-menu-view/-/react-native-context-menu-view-2.0.0.tgz","fileCount":23,"unpackedSize":3390620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgl848CRA9TVsSAnZWagAAD2QQAIYlwJWMhBmOcTGylfo2\nWxbnJy9LpzdHfq5Vgv1372QuvIBScn7Uj4KCpxdQGLOsCBge3gbGOLtXHMHR\nan5dM9ralwRGoa7tag3QfUTIB30ZURHYp0f0XdOGan78ccCrUum6ZuMQcLb7\n+S00OSc8qoB9dBjxnkIK/m3emtkpfWRftrpZgxSzvBZ6igFnRaJ7fpfT65Z8\n/AehmRCgkVXjVLwhs6lQV8+eLlxzzC4NJB0BV+7k+ZRo03Y/YdHVWOwqbWnq\n33R4X5K7x1jzoWq0vT+wdTOMB7hFt2EL0ZMwr4TSPNcQ9vsyBLxIjavTH31S\nrTvVCA5GNuVtG+YW2lEmNrtaxyN1CTqVcgWNWIkHE8tQKbsZVlLnzekoO0/u\niB4bbyJdWgXjw4gCiN0zya5XW0dG2KlxRCeCTYoieD1rPpVxO94QUZ9as23+\ndUmOO6gQB9nHcH3yofGb6Ats/I0sYqRTmmI6oaqDOi4yUz9tOF0tAmsGsWkU\nHxf0RsR6d0D1e6EiDQKST5EJiB0F61NThmf4jacJKfmLLQkOrFpgWs6uPbGs\nZqCo1UCQv9TATPkWHPy9OcDbudWMjKY4NKoe2i1tunBQDpDecq6J4+cFZBBx\nW1zfYfYFxVt5Df4+3/hkkCdnUpPM+8F/XJvUDGOKUJUHISOlPcFO08aw2hgF\noFQ9\r\n=r/hU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfAO2gVi/9TWspt62V52bDdoZpcLD6TMyRwXpvq5h1zAiEAkTMwY5NpQ5GFAgdMaZq99/INkeZFG2K16m79EYVxseo="}]},"_npmUser":{"name":"hannojg","email":"hanno.goedecke@gmail.com"},"directories":{},"maintainers":[{"name":"hannojg","email":"hanno.goedecke@gmail.com"},{"name":"mrousavy","email":"marcrousavy@hotmail.com"},{"name":"cuvent-admin","email":"support@cuvent.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-context-menu-view_2.0.0_1620561467980_0.5923760935198923"},"_hasShrinkwrap":false},"2.0.1":{"name":"@cuvent/react-native-context-menu-view","title":"React Native Context Menu View GH","version":"2.0.1","description":"Use native context menu views from React Native with gesture handler support.","main":"index.js","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cuvent/react-native-context-menu-view.git","baseUrl":"https://github.com/cuvent/react-native-context-menu-view"},"keywords":["react-native"],"author":{"name":"Matthew Iannucci","email":"mpiannucci@gmail.com"},"license":"MIT","licenseFilename":"LICENSE","peerDependencies":{"react":"^16.8.1","react-native":">=0.60.0-rc.0 <1.0.x","react-native-gesture-handler":"^1.10.3"},"devDependencies":{"react":"^16.9.0","react-native":"^0.61.5"},"gitHead":"69912c7a7a631976606548a755aea0a7e4b9f4a9","bugs":{"url":"https://github.com/cuvent/react-native-context-menu-view/issues"},"homepage":"https://github.com/cuvent/react-native-context-menu-view#readme","_id":"@cuvent/react-native-context-menu-view@2.0.1","_nodeVersion":"12.18.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-zMwEvackduD6YdYSdAPlHsqdPKLIoXC1Wl+1+iyrhb1H20uY88qHFX9e8epfFo5wH6cX9JcNfY8PB42FdwkOXw==","shasum":"3d6da20cf6c1db43b742ff52a157e7bd0d581de6","tarball":"https://registry.npmjs.org/@cuvent/react-native-context-menu-view/-/react-native-context-menu-view-2.0.1.tgz","fileCount":22,"unpackedSize":37231,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgl85WCRA9TVsSAnZWagAAzbkP/Rpsr6RR6KYlv9zliXOm\n61cORjxUDIiLKUmmBJQza7OiJxbmABSxQMM9jF5FnRigxTt4dYnMKjcZ/Sjz\nBxx5W8EXNyuR+zR8+o84OR75rCr73CnT+UGeukhmtT6PNiFurCn7XFFdb7wn\noTBzDeqLG+D/aPgG0Df8cFvFRNeIpkkFX2GbknbQRWWb+czyBUoVQ2WjqRTG\nWglZPX7D/bvU2Zlvu2NVLMobM7FYa5BtWUOFjTlskvDtUrIkBmN1+3L718h2\neatpEnkqzJ1cLW3ZiNUG3SMB/vUXwyrfrsaAmO57d6C9ciXvFvcalNYEsES3\nA4gT+yZsvkIzK+0emfTJl8cfngQdxn/AH7Mkgxn0+SGhZqIM0hAAmWFlSqQE\nOHSIOrUqYuA+ydGXhXgchOqI+uE8CIo8E4vyQNJPWvuqm7BkbEkTlgr47K7J\nMO+3ukLdaGX16FCMLzwZ8hQJo/Df3LdMwg19s3kjUIPrgB5oSY5maDDN3c3Z\nBVCgpKG2nPy2knzQCVCD9zOmcZS0W6D74OvUQnx3Csy3yNr9wOlsKlogA47i\nwl6sVx+MTs9Tz7qae2FT8/1qIgREFEXH1OyYwSDnfdXaQAdqqUpPfSCQ1PbN\nA7d2Td/KgdCHbFjEn2IkoA4GbKX0imVMhPGg2+qI77u4MqOOpZHCq33iZKXG\nfZTb\r\n=G49H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXf8kP+Cyn+8g4Y9ioRykLQbO0htiRS4b2zJb6/By3TAiEAplXVKGMOEtZzbpRI/mBF641+sqnQHBSZ4c0TwX6J/Iw="}]},"_npmUser":{"name":"hannojg","email":"hanno.goedecke@gmail.com"},"directories":{},"maintainers":[{"name":"hannojg","email":"hanno.goedecke@gmail.com"},{"name":"mrousavy","email":"marcrousavy@hotmail.com"},{"name":"cuvent-admin","email":"support@cuvent.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-context-menu-view_2.0.1_1620561494452_0.10672475855721131"},"_hasShrinkwrap":false},"2.0.2":{"name":"@cuvent/react-native-context-menu-view","title":"React Native Context Menu View GH","version":"2.0.2","description":"Use native context menu views from React Native with gesture handler support.","main":"index.js","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cuvent/react-native-context-menu-view.git","baseUrl":"https://github.com/cuvent/react-native-context-menu-view"},"keywords":["react-native"],"author":{"name":"Matthew Iannucci","email":"mpiannucci@gmail.com"},"license":"MIT","licenseFilename":"LICENSE","peerDependencies":{"react":"*","react-native":"*","react-native-gesture-handler":"^1.10.3"},"devDependencies":{"react":"^16.9.0","react-native":"^0.61.5"},"gitHead":"c8d4e4f6b36d1b76f1de08e8fc3e499d265f3c87","bugs":{"url":"https://github.com/cuvent/react-native-context-menu-view/issues"},"homepage":"https://github.com/cuvent/react-native-context-menu-view#readme","_id":"@cuvent/react-native-context-menu-view@2.0.2","_nodeVersion":"12.18.0","_npmVersion":"7.7.5","dist":{"integrity":"sha512-VLS7fh2L0mWiLprEKBeTSC0ky85te/bRSXOMjSLQSMHDRiMCE6cwuFDjfvY3djxdJ5DaL1hjYaniPiLtoRL9KA==","shasum":"0682b4a35b001eaa83f92ec305f568506ad8a97a","tarball":"https://registry.npmjs.org/@cuvent/react-native-context-menu-view/-/react-native-context-menu-view-2.0.2.tgz","fileCount":22,"unpackedSize":37206,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgl88ACRA9TVsSAnZWagAAVDYQAIyB2a0xx/pBFz8vGyXj\nHpszS5AOvuvv9/DwD8g56cqxuTNcQIZpQ0BU5JFZUodLdA7c17g69g7aj7BH\nl4DBFY/wEqJ3HIYOTXIFYxRIR/vrs3XnupRgf5y2viAMUEBseppg68JdP24R\nkFFzqrMFWm6VBxaZvmBBfc2Vhf4wqADH9Eu8IhtTuqEei2VHkOtGz/uhCC32\noEs/exqMnhh/5XVn+R8JF1gdXg+21Hkyiyq4CHXQ6HybI3yS/ncF8MNL5WGr\nc8EmxoeSEdG/+edG2GmEIIFNb6s6QeBbLXXRh5VO0fKpcO9Laq8F2GCN+vuq\nCYwjfKE7rQpq2QLw96wK59C0vZHW59+fJG6uOkadmnb9NCj3CgDjL2AYNZm/\n2glIOYAT1fvtc3lyvasR5SFuhox3g6V8WB4qL6gT8mNK/B0/2Y6NWwNGfMfx\nA3LSJxFGaJ540TzbhFOH1dLD/SmsTgix8L68HpLy2neWmPLmk9sQtUcKdrlp\nKnr3pLdLmIo/7SR19VtJizuuC328MQlEzO2pn8d6bx09/7GdoD+cey9e92Mk\nUPgNhSMn9ZGLKXpM6husIAWmw8o2FubJ7fqwQ0PXbr9zpBrxvENdIsS356+B\nO5g+1ldRXLh/Rcn8SgyeV0gQuI3XrsDQGa8eA+JNLK5RxlVT0wNTGsftVTtb\nhGNY\r\n=a2FD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMOn+e3IxJ2AiMClvEzKnXiGOH4FyN9C1z5P8FJwXJMAiEAxcBozbMpRzRR2Icm23xbne7ftz18rjNHQMFLdg7wE3E="}]},"_npmUser":{"name":"hannojg","email":"hanno.goedecke@gmail.com"},"directories":{},"maintainers":[{"name":"hannojg","email":"hanno.goedecke@gmail.com"},{"name":"mrousavy","email":"marcrousavy@hotmail.com"},{"name":"cuvent-admin","email":"support@cuvent.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-context-menu-view_2.0.2_1620561664115_0.03026162612055039"},"_hasShrinkwrap":false},"2.0.3":{"name":"@cuvent/react-native-context-menu-view","title":"React Native Context Menu View GH","version":"2.0.3","description":"Use native context menu views from React Native with gesture handler support.","main":"index.js","types":"index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cuvent/react-native-context-menu-view.git","baseUrl":"https://github.com/cuvent/react-native-context-menu-view"},"keywords":["react-native"],"author":{"name":"Matthew Iannucci","email":"mpiannucci@gmail.com"},"license":"MIT","licenseFilename":"LICENSE","peerDependencies":{"react":"*","react-native":"*","react-native-gesture-handler":"^1.10.3"},"devDependencies":{"react":"^16.9.0","react-native":"^0.61.5"},"gitHead":"214b915b83968924484f3072c912666fc57d1518","bugs":{"url":"https://github.com/cuvent/react-native-context-menu-view/issues"},"homepage":"https://github.com/cuvent/react-native-context-menu-view#readme","_id":"@cuvent/react-native-context-menu-view@2.0.3","_nodeVersion":"14.15.5","_npmVersion":"6.14.11","dist":{"integrity":"sha512-cCQHqNhsVnR0/jsTljjMLm7TBfZK9nFWUEAxTsq5U911DfL9P6nSS9DJNxbXYL0e6+FnN8bQo496C2SE7pNjzA==","shasum":"7e3996e8514321f549110d3f0c3ebba88c477e5b","tarball":"https://registry.npmjs.org/@cuvent/react-native-context-menu-view/-/react-native-context-menu-view-2.0.3.tgz","fileCount":22,"unpackedSize":37812,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmNQMCRA9TVsSAnZWagAAT4cQAIGc5kCbLvWmSfqOm8uu\nHAk6uBu/Gn9f4n45PNXzAPHksfN0G+WHTu3D+6KlTcD3H9kexCI0yVZTWfm8\nztMi9Zt/m64aCJ1HfJFbp7APqeLlLstv0fFWsGVnMxQ06BBdzb/JuQkW2fjK\njqr7ztHKWa6BEchnQPHhVXkWWDlCmzLa5tw2qYwQ9HgEgVygPyXmbTlVPYna\n1xDaPhleK4YU67Wq0tlOvOZxYel5HO0zXfPA3To/fpnvLXa4vkCPiUwKe4GH\njkkxfUs3V8WOTAPlcrW11rqRqbPR0AyoyZ11wfT/gn6ZeTn97TOHzCD7Ss0d\nDlcT3cscEOhFqsxL/XQuwaONjGw0jb6DfcatCyKGwb83Agf+AbwUnkqMXZNP\nn1AysePY0ORlRXFcF3OQCVZx1ievFvs5PfhZbKVZFlAGUMRn8doRDRVM2QiP\naSWGjcP+KCqfUd3YXBS+44bozTfCUt4HHJoeGg6Cg2vairLZOkLFs0AH+W5T\nBUDjocygsA2L4U/VA6eaTAN+VcZWIEN6UYCbyqa9yqV4TZ1i7OlWLODz+Xdc\njwf8YlHTEdLNed6yJ5+HopT9/USNhYOg5l8FW5O/A4E4CCdt0o+mkKfLUtfS\n7udh6Db8wyVHxul77JepPqTt/EM2aWuAb8Jw+XDNIybMIJQOesc4Xt5aoqCn\nnHED\r\n=+oo+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFMfoW0FYZFFsogEdmXJN1TYKlr0VjX+BCyEazz7bIyVAiEAlJeSYTDJf6yb0VewqCALFdvHEtqytkNEppZQkTnvm1o="}]},"_npmUser":{"name":"hannojg","email":"hanno.goedecke@gmail.com"},"directories":{},"maintainers":[{"name":"hannojg","email":"hanno.goedecke@gmail.com"},{"name":"mrousavy","email":"marcrousavy@hotmail.com"},{"name":"cuvent-admin","email":"support@cuvent.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-context-menu-view_2.0.3_1620628492121_0.30207385048620905"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-09T11:57:47.659Z","2.0.0":"2021-05-09T11:57:48.242Z","modified":"2022-04-05T02:21:56.875Z","2.0.1":"2021-05-09T11:58:14.576Z","2.0.2":"2021-05-09T12:01:04.234Z","2.0.3":"2021-05-10T06:34:52.296Z"},"maintainers":[{"name":"hannojg","email":"hanno.goedecke@gmail.com"},{"name":"mrousavy","email":"marcrousavy@hotmail.com"},{"name":"cuvent-admin","email":"support@cuvent.com"}],"description":"Use native context menu views from React Native with gesture handler support.","homepage":"https://github.com/cuvent/react-native-context-menu-view#readme","keywords":["react-native"],"repository":{"type":"git","url":"git+https://github.com/cuvent/react-native-context-menu-view.git","baseUrl":"https://github.com/cuvent/react-native-context-menu-view"},"author":{"name":"Matthew Iannucci","email":"mpiannucci@gmail.com"},"bugs":{"url":"https://github.com/cuvent/react-native-context-menu-view/issues"},"license":"MIT","readme":"# react-native-context-menu-view\n\nUse native context menu functionality from React Native. On iOS 13+ this uses `UIMenu` functionality, and on Android it uses a `PopUpMenu`.\n\nOn iOS 12 and below, nothing happens. You may wish to do a `Platform.OS === 'ios' && parseInt(Platform.Version, 10) <= 12` check, and add your own `onLongPress` handler.\n\n<img src=\"./assets/context-menu-ios.gif\" width=\"300\">\n\n## Getting started\n\n`$ npm install react-native-context-menu-view --save`\n\n### Mostly automatic installation\n\n```bash\ncd ios/\npod install\n```\n\n## Usage\n\n```javascript\nimport ContextMenu from \"react-native-context-menu-view\";\n\nconst Example = () => {\n  return (\n    <ContextMenu\n      actions={[{ title: \"Title 1\" }, { title: \"Title 2\" }]}\n      onPress={(e) => {\n        console.warn(\n          `Pressed ${e.nativeEvent.name} at index ${e.nativeEvent.index}`\n        );\n      }}\n    >\n      <View style={styles.yourOwnStyles} />\n    </ContextMenu>\n  );\n};\n```\n\nSee `example/` for basic usage.\n\n## Props\n\n###### `title`\n\nOptional. The title above the popup menu.\n\n###### `actions`\n\nArray of `{ title: string, systemIcon?: string, destructive?: boolean, disabled?: boolean, inlineChildren?: boolean, children?: Array<ContextMenuAction> }`.\n\nSystem icon refers to an icon name within [SF Symbols](https://developer.apple.com/design/human-interface-guidelines/sf-symbols/overview/).\n\nDestructive items are rendered in red on iOS, and unchanged on Android.\n\nNested menus are supported on iOS only and result in nested UIMenu which can be optionally displayed inline. \n\n###### `onPress`\n\nOptional. When the popup is opened and the user picks an option. Called with `{ nativeEvent: { index, name } }`. When a nested action is selected the top level parent index is used for the callback. \n\n###### `onCancel`\n\nOptional. When the popop is opened and the user cancels.\n\n###### `previewBackgroundColor`\n\nOptional. The background color of the preview. This is displayed underneath your view. Set this to transparent (or another color) if the default causes issues.\n","readmeFilename":"README.md"}