{"id":19499712,"url":"https://github.com/apsl/react-native-options-button","last_synced_at":"2026-03-06T01:35:03.408Z","repository":{"id":57338831,"uuid":"92510243","full_name":"APSL/react-native-options-button","owner":"APSL","description":"A bottom animated options button","archived":false,"fork":false,"pushed_at":"2018-09-13T14:39:41.000Z","size":143,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-21T07:17:34.029Z","etag":null,"topics":["bottom","button","react-component","react-native"],"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":"2017-05-26T12:51:07.000Z","updated_at":"2020-05-07T15:04:10.000Z","dependencies_parsed_at":"2022-09-15T23:51:44.231Z","dependency_job_id":null,"html_url":"https://github.com/APSL/react-native-options-button","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/APSL/react-native-options-button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-options-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-options-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-options-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-options-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/APSL","download_url":"https://codeload.github.com/APSL/react-native-options-button/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APSL%2Freact-native-options-button/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263542284,"owners_count":23477454,"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":["bottom","button","react-component","react-native"],"created_at":"2024-11-10T22:06:06.274Z","updated_at":"2026-03-06T01:35:03.374Z","avatar_url":"https://github.com/APSL.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-options-button\n\n\u003cp\u003e\n\u003cimg src=\"https://img.shields.io/npm/dm/react-native-options-button.svg\" /\u003e\n\u003cimg src=\"https://img.shields.io/npm/dt/react-native-options-button.svg\" /\u003e\n\u003c/p\u003e\n\nA fully customizable bottom animated options button.\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/wiki/APSL/react-native-options-button/rnob.gif\" alt=\"Options button demo\" width=\"400\"\u003e\n\u003c/p\u003e\n\n## Motivation\n\nWith bigger screens, actions should be moved to the bottom of the screen in order to be more accessible.\n\n## Installation\n\n```sh\n$ yarn add react-native-options-button\n```\n\n## Usage\n\n```js\n/* @flow */\n\nimport React from 'react'\nimport { View } from 'react-native'\nimport { OptionsButton } from 'react-native-options-button'\n\nclass App extends React.Component {\n  render() {\n    return (\n      \u003cView style={{ flex: 1 }}\u003e\n        \u003cOptionsButton\n          items={[\n            { title: 'Title 1', id: 0, onPress: () =\u003e null },\n            { title: 'Title 2', id: 1, onPress: () =\u003e null },\n            { title: 'Title 3', id: 2, onPress: () =\u003e null },\n            { title: 'Title 4', id: 3, onPress: () =\u003e null },\n            { title: 'Title 5', id: 4, onPress: () =\u003e null },\n            { title: 'Title 6', id: '5', onPress: () =\u003e null }\n          ]}\n          title=\"Menu\"\n          openTitle=\"Close\"\n          onPress={(i, z) =\u003e console.log(i, z)}\n          buttonStyle={{ borderRadius: 0 }}\n          optionsStyle={{ borderRadius: 8 }}\n          buttonTextStyle={{ color: 'white' }}\n          containerStyle={{ bottom: 15 }}\n        /\u003e\n      \u003c/View\u003e\n    )\n  }\n}\n\nexport default App\n\n```\n\n## API\n\n### `OptionsButton` API\n\n#### `OptionItem`\n```js\ntype OptionItem = {\n  title: string,\n  id: string | number,\n  onPress?: Function\n}\n```\n\n| Prop          | Type          | Required  |\n| ------------- |:-------------:| ---------:|\n| `items`       | `Array\u003cOptionItem\u003e` | Yes     |\n| `title`       | `string`      |   Yes     |\n| `openTitle`   | `string`      | Yes       |\n| `onPress`     | `Function`    | |\n| `color`       | `string`      | |\n| `openedColor` | `string`      | |\n| `isLoading`   | `boolean`     | |\n| `containerStyle` | `any`      | |\n| `buttonStyle` | `any`         | |\n| `buttonTextStyle` | `any`     | |\n| `optionsStyle`| `any`         | |\n| `optionTextStyle` | `any`     | |\n| `separatorStyle` | `any`      | |\n\n## License\n\nMIT.\n\n## Author\n\nÁlvaro Medina Ballester `amedina at apsl dot net`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsl%2Freact-native-options-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsl%2Freact-native-options-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsl%2Freact-native-options-button/lists"}