{"id":13637482,"url":"https://github.com/cinder92/react-native-circular-menu","last_synced_at":"2025-04-19T08:34:19.087Z","repository":{"id":57336083,"uuid":"95182389","full_name":"cinder92/react-native-circular-menu","owner":"cinder92","description":"A Ripple menu effect for your react native application","archived":false,"fork":false,"pushed_at":"2022-11-09T01:32:23.000Z","size":149,"stargazers_count":132,"open_issues_count":0,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-03T17:07:13.964Z","etag":null,"topics":["component","react-native","ripple-menu"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cinder92.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-23T04:15:27.000Z","updated_at":"2024-03-30T23:09:22.000Z","dependencies_parsed_at":"2023-01-21T17:45:06.408Z","dependency_job_id":null,"html_url":"https://github.com/cinder92/react-native-circular-menu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinder92%2Freact-native-circular-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinder92%2Freact-native-circular-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinder92%2Freact-native-circular-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinder92%2Freact-native-circular-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cinder92","download_url":"https://codeload.github.com/cinder92/react-native-circular-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223672979,"owners_count":17183618,"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","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":["component","react-native","ripple-menu"],"created_at":"2024-08-02T00:01:18.201Z","updated_at":"2024-11-09T06:31:22.124Z","avatar_url":"https://github.com/cinder92.png","language":"JavaScript","readme":"# react-native-circular-menu\n\nA Ripple menu effect for your react native application\n\n[![npm version](https://img.shields.io/npm/v/react-native-circular-menu.svg?style=flat-square)](https://www.npmjs.com/package/react-native-circular-menu)\n[![NPM downloads](https://img.shields.io/npm/dm/react-native-circular-menu.svg?style=flat-square)](https://www.npmjs.com/package/react-native-circular-menu)\n[![Package Quality](http://npm.packagequality.com/shield/react-native-circular-menu.svg?style=flat-square)](http://packagequality.com/#?package=react-native-circular-menu)\n[![Donate](https://img.shields.io/badge/Donate-Patreon-green.svg?style=flat-square)](http://paypal.me/dcergo)\n\n# Example\n\n![example](https://github.com/cinder92/react-native-circular-menu/blob/master/ezgif.com-video-to-gif.gif)\n\n# How to install\n\n`yarn add react-native-circular-menu`\n\n# How to use\n\n```\n...\nimport CircularMenu from 'react-native-circular-menu';\n\nconst App = () =\u003e {\n  const [show, setState] = useState(false);\n\n  const renderItems = () =\u003e [\u003cText style={{color: 'green'}}\u003eMenu Item\u003c/Text\u003e];\n\n  const renderCloseBtn = () =\u003e (\n    \u003cTouchableOpacity\n      onPress={() =\u003e {\n        setState(!show);\n      }}\u003e\n      \u003cText\u003eClose Menu\u003c/Text\u003e\n    \u003c/TouchableOpacity\u003e\n  );\n\n  return (\n    \u003cView\u003e\n      \u003cStatusBar hidden /\u003e\n      \u003cText onPress={() =\u003e setState(!show)}\u003eOpen Menu\u003c/Text\u003e\n      \u003cCircularMenu\n        items={renderItems()}\n        closeBtn={renderCloseBtn()}\n        show={show}\n        position={'center'}\n        contentStyle={{backgroundColor: 'transparent'}}\n        closeDelay={250}\n        openDelay={0}\n      /\u003e\n    \u003c/View\u003e\n  );\n```\n\n# Props\n\n| Name         | Description                                               | Required |\n| ------------ | --------------------------------------------------------- | -------- |\n| show         | Set `true` to show and `false` to hide                    | yes      |\n| color        | Change color of ripple effect                             | no       |\n| size         | Change the scale size of circle (default : 20)            | no       |\n| items        | Menu items (array)                                        | yes      |\n| position     | Change position of animation circle (default : `topLeft`) | no       |\n| closeBtn     | Receives a component for close button                     | yes      |\n| openDelay    | Change delay before the menu opens (default : 250)        | no       |\n| closeDelay   | Change delay before the menu closes (default : 350)       | no       |\n| contentStyle | Style object for the child container                      | no       |\n\n# Positions\n\nCircular Menu supports 7 positions, `topLeft`, `topCenter`, `topRight`, `center`, `bottomLeft`, `bottomCenter`, `bottomRight`.\n\n# TODO\n\n- [x] Test in iPhone\n- [x] Test in Android\n- [ ] Add animations\n\n# of coooourse PR are welcome :)\n","funding_links":["http://paypal.me/dcergo"],"categories":["React Native","JavaScript"],"sub_categories":["Components React Native"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinder92%2Freact-native-circular-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcinder92%2Freact-native-circular-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinder92%2Freact-native-circular-menu/lists"}