{"id":19499698,"url":"https://github.com/apsl/react-native-section-menu","last_synced_at":"2025-04-25T22:34:24.489Z","repository":{"id":57339842,"uuid":"58289021","full_name":"APSL/react-native-section-menu","owner":"APSL","description":"A multi-platform React Native sectioned menu","archived":false,"fork":false,"pushed_at":"2018-09-12T14:22:15.000Z","size":106,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-15T17:43:16.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/APSL.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":"2016-05-07T23:47:10.000Z","updated_at":"2024-01-19T10:56:55.000Z","dependencies_parsed_at":"2022-09-12T03:11:53.102Z","dependency_job_id":null,"html_url":"https://github.com/APSL/react-native-section-menu","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-section-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-section-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-section-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-section-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/APSL","download_url":"https://codeload.github.com/APSL/react-native-section-menu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224019605,"owners_count":17242177,"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":[],"created_at":"2024-11-10T22:05:52.199Z","updated_at":"2024-11-10T22:05:53.877Z","avatar_url":"https://github.com/APSL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-section-menu\n\n[![Build Status](https://travis-ci.org/APSL/react-native-section-menu.svg?branch=master)](https://travis-ci.org/APSL/react-native-section-menu)\n\nA multi-platform React Native sectioned menu.\n\n## ⚠️ DEPRECATED ⚠️\nThis component has been deprecated. Use it at your own risk.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wiki/APSL/react-native-section-menu/menu.ios.gif\" alt=\"iOS menu\" width=\"400\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wiki/APSL/react-native-section-menu/menu.android.gif\" alt=\"Android menu\" width=\"400\"\u003e\n\u003c/p\u003e\n\n## Installation\n\n```sh\n$ npm i --save-dev react-native-section-menu\n```\n\n## Usage\n\nTo render a basic menu, take the following code as an example. It will render a green header in Android with a drawer-based animation and a TabBar navigation for iOS. You can combine this component with [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) to fully customize the icons of your menu.\n\n```js\nimport { Menu } from 'react-native-section-menu'\n\nclass MyMenu extends React.Component {\n  render () {\n    return (\n      \u003cMenu\n        header={\u003cView style={{height: 150, backgroundColor: '#27ae60'}} /\u003e}\n        initialEntry={0}\n        tintColor='#27ae60'\n        entries={[\n          {\n            id: 0,\n            element: \u003cView style={{flex: 1, backgroundColor: '#95a5a6'}} /\u003e,\n            title: 'Bookmarks',\n          },\n          {\n            id: 1,\n            element: \u003cView style={{flex: 1, backgroundColor: '#2c3e50'}} /\u003e,\n            title: 'Contacts',\n          },\n          {\n            id: 2,\n            element: \u003cView style={{flex: 1, backgroundColor: '#ecf0f1'}} /\u003e,\n            title: 'Search',\n          }\n        ]}\n      /\u003e\n    )\n  }\n}\n```\n\n## API\n### Required\n| Prop | Type | Description |\n|------|------|-------------|\n| `entries` | `Array\u003cEntry\u003e` | An array of menu entries. |\n\n#### `Entry` object\n| Prop | Type | Description |\n|------|------|-------------|\n| `id` | `number` | A numeric identifier. |\n| `title` | `string` | The title of the section. |\n| `element` | `element` | The element to render in the section. |\n\n### Not required\n| Prop | Type | Description |\n|------|------|-------------|\n| `initialEntry` | `number` | A number to mark the entry to render by default. |\n\n### iOS specific\n| Prop | Type | Description |\n|------|------|-------------|\n|  | `TabBarIOS.propTypes` | You can pass all the props. Docs [here](http://facebook.github.io/react-native/releases/0.34/docs/tabbarios.html#tabbarios). |\n\n#### `Entry` object\n| Prop | Type | Description |\n|------|------|-------------|\n| `itemComponent` | `func` | Pass here `Icon.TabBarItemIOS` to use `react-native-vector-icons` TabBar item. |\n| `iconName` | `string` | The `react-native-vector-icons` icon name. |\n| `selectedIconName` | `string` | The `react-native-vector-icons` selected icon name. |\n| `iconSize` | `number` | The `react-native-vector-icons` icon size. |\n\n### Android specific\n| Prop | Type | Description |\n|------|------|-------------|\n| | `DrawerLayoutAndroid.propTypes` | `DrawerLayoutAndroid` available props. |\n| `containerStyle` | `View.propTypes.style` | The style of the parent container view. |\n| `header` | `node` | Optional header to display above the menu list. |\n\n#### `Entry` object\n| Prop | Type | Description |\n|------|------|-------------|\n| `androidIcon` | `node` | A React node to render as an icon. |\n| `androidBackground` | `TouchableNativeFeedback.propTypes.background` | The background effect of the entry section. |\n| `tintColor` | `string` | The tint color of the selected entry. |\n\n## License\nMIT\n\n## How to contribute\nPlease open an issue or send a PR ☺️.\n\n## Authors\n\nÁlvaro Medina Ballester `amedina at apsl.net`.\n\nDani Sastre `dsastre at apsl.net`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsl%2Freact-native-section-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsl%2Freact-native-section-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsl%2Freact-native-section-menu/lists"}